.section__heading--auth-single {
  margin-left: auto;
  margin-right: auto;
  max-width: 720px;
  text-align: center;
}

.section__heading--auth-single p {
  margin-left: auto;
  margin-right: auto;
  max-width: 54ch;
}

body[data-page="login"] .site-shell,
body[data-page="login"] .login-header,
body[data-page="login"] .main-container {
  position: relative;
  z-index: 1;
}

body[data-page="login"] .main-container {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 80px);
}

body[data-page="login"] .section--auth {
  padding-bottom: 48px;
  padding-top: 48px;
  width: 100%;
}

body[data-page="login"] .login-header .signup-button,
body[data-page="login"] .login-header .login-button {
  transition: opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

body[data-page="login"] .login-header .signup-button {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #d0d6dc;
  box-shadow: none;
  color: #2c3e50;
  opacity: 0.85;
}

body[data-page="login"] .login-header .signup-button:hover,
body[data-page="login"] .login-header .signup-button:focus-visible {
  background: #f5f7fa;
  border-color: #c8cfd7;
  box-shadow: none;
  color: #24364a;
}

body[data-page="login"] .login-header:hover .signup-button {
  opacity: 1;
}

body[data-page="login"] .login-header .login-button {
  opacity: 0.7;
}

body[data-page="login"] .login-header .login-button:hover,
body[data-page="login"] .login-header .login-button:focus-visible {
  opacity: 0.88;
}

body[data-page="login"] .login-hero {
  display: grid;
  justify-items: center;
  margin-bottom: 22px;
  text-align: center;
}

body[data-page="login"] .login-hero h1 {
  margin-left: auto;
  margin-right: auto;
  max-width: 11ch;
  text-align: center;
  text-wrap: balance;
}

body[data-page="login"] .login-subtitle {
  margin-bottom: 16px;
  margin-left: auto;
  margin-right: auto;
  max-width: 40ch;
}

body[data-page="login"] .login-card {
  background: #ffffff;
  border: 1px solid rgba(214, 220, 228, 0.92);
  border-radius: 20px;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.08),
    0 6px 12px rgba(0, 0, 0, 0.04);
  margin-top: 0;
  max-width: 640px;
  padding: 32px;
  width: min(100%, 640px);
  animation: fadeSlide 0.45s ease;
}

body[data-page="login"] .login-card .auth-panels {
  min-height: 0;
}

body[data-page="login"] .login-card .button-primary {
  background: linear-gradient(180deg, #2f4b73 0%, #243b5a 100%);
  border-radius: 999px;
  font-weight: 600;
  min-height: 52px;
  box-shadow:
    0 8px 20px rgba(36, 59, 90, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
}

body[data-page="login"] .login-card .button-primary:hover,
body[data-page="login"] .login-card .button-primary:focus-visible {
  box-shadow:
    0 14px 28px rgba(36, 59, 90, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-2px) scale(1.01);
}

body[data-page="login"] .login-card .button-primary:active {
  transform: translateY(0);
}

body[data-page="login"] .login-card .social-button {
  background: #ffffff;
  border: 1px solid #e2e6ea;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  min-height: 48px;
  transition: all 0.2s ease;
}

body[data-page="login"] .login-card .social-button.google-btn {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

body[data-page="login"] .login-card .social-button.apple-btn {
  opacity: 0.9;
}

body[data-page="login"] .login-card .social-button:hover,
body[data-page="login"] .login-card .social-button:focus-visible {
  background: #f8fafc;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

body[data-page="login"] .login-card .input {
  border: 1px solid #e2e6ea;
  border-radius: 12px;
  min-height: 52px;
  padding: 14px 16px;
  transition: all 0.2s ease;
}

body[data-page="login"] .login-card .input:focus {
  border-color: #2f4b73;
  box-shadow: 0 0 0 3px rgba(47, 75, 115, 0.12);
  transform: scale(1.01);
}

body[data-page="login"] .login-card .divider {
  align-items: center;
  color: #9aa4b2;
  display: flex;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
}

body[data-page="login"] .login-card .divider::before,
body[data-page="login"] .login-card .divider::after {
  background: #e5e9ef;
  content: "";
  flex: 1;
  height: 1px;
}

body[data-page="login"] .login-card .divider span {
  color: #9aa4b2;
  letter-spacing: 0.08em;
}

body[data-page="login"] .login-card .auth-secondary-action {
  gap: 6px;
  margin-top: 2px;
}

body[data-page="login"] .login-card .auth-inline-link--secondary {
  font-size: 13px;
}

body[data-page="login"] .login-card .auth-password-meta {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 2px;
}

body[data-page="login"] .login-card .auth-inline-link--forgot {
  font-size: 12px;
  line-height: 1.2;
  padding: 0;
}

body[data-page="login"] #auth-status {
  margin: 14px auto 0;
  max-width: 640px;
  text-align: center;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-checkout {
  background: rgba(32, 57, 95, 0.06);
  border: 1px solid rgba(21, 33, 59, 0.08);
  border-radius: 16px;
  display: grid;
  gap: 6px;
  padding: 16px 18px;
}

.auth-checkout__eyebrow {
  color: rgba(32, 57, 95, 0.68);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.auth-checkout strong {
  color: var(--ink);
  font-size: 17px;
  letter-spacing: -0.02em;
}

.auth-checkout p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.auth-rail {
  display: grid;
  gap: 10px;
}

.auth-rail--step {
  align-content: start;
  grid-template-columns: 1fr;
}

.auth-step-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 248, 252, 0.94));
  border: 1px solid rgba(21, 33, 59, 0.08);
  border-radius: 20px;
  box-shadow: 0 18px 36px rgba(18, 32, 58, 0.08);
  display: grid;
  gap: 10px;
  opacity: 0.85;
  padding: 18px;
}

.auth-step-card__eyebrow {
  color: rgba(32, 57, 95, 0.72);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-step-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.auth-switch {
  align-items: center;
  background: rgba(32, 57, 95, 0.06);
  border: 1px solid transparent;
  border-radius: 16px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 52px;
  padding: 0 16px;
  text-align: center;
  text-decoration: none;
}

.auth-switch.is-active {
  background: linear-gradient(135deg, #20395f, #32527f);
  color: #fff;
}

.auth-panels {
  min-height: 100%;
  position: relative;
}

.auth-panel {
  display: none;
  gap: 14px;
}

.auth-panel.is-active {
  display: grid;
}

.auth-panel--login {
  gap: 16px;
}

.auth-value-bridge {
  color: #1f3b64;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
}

.auth-social-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-social-button {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(21, 33, 59, 0.12);
  box-shadow: none;
  color: #1f3b64;
  font-weight: 700;
}

.auth-social-button.google-btn {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.auth-social-button.apple-btn {
  opacity: 0.9;
}

.auth-social-button:hover,
.auth-social-button:focus-visible {
  background: #f5f7fa;
  border-color: rgba(21, 33, 59, 0.16);
  box-shadow: none;
  color: #1f3b64;
}

.auth-social-button.is-pending {
  background: rgba(246, 248, 251, 0.98);
  border-color: rgba(21, 33, 59, 0.12);
  box-shadow: none;
  color: rgba(31, 59, 100, 0.56);
  cursor: progress;
  opacity: 0.86;
}

.auth-social-button.is-unavailable,
.auth-social-button[disabled]:not(.is-pending) {
  background: rgba(242, 245, 249, 0.98);
  border-color: rgba(21, 33, 59, 0.08);
  box-shadow: none;
  color: rgba(31, 59, 100, 0.42);
  cursor: not-allowed;
  opacity: 0.72;
}

.auth-social-button.is-pending:hover,
.auth-social-button.is-pending:focus-visible,
.auth-social-button.is-unavailable:hover,
.auth-social-button.is-unavailable:focus-visible,
.auth-social-button[disabled]:not(.is-pending):hover,
.auth-social-button[disabled]:not(.is-pending):focus-visible {
  background: rgba(242, 245, 249, 0.98);
  border-color: rgba(21, 33, 59, 0.08);
  box-shadow: none;
  color: rgba(31, 59, 100, 0.42);
  transform: none;
}

.auth-social-status {
  margin: -2px 0 0;
  min-height: 1.45em;
  text-align: center;
}

.auth-divider {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: center;
  margin: 4px 0;
}

.auth-divider::before,
.auth-divider::after {
  background: rgba(21, 33, 59, 0.12);
  content: "";
  flex: 1 1 auto;
  height: 1px;
}

.auth-divider span {
  color: rgba(21, 33, 59, 0.48);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.auth-helper {
  font-size: 14px;
  margin: 0;
}

.auth-helper--centered {
  text-align: center;
}

.auth-helper--subtle {
  color: rgba(21, 33, 59, 0.62);
  font-size: 13px;
  line-height: 1.55;
  max-width: 42ch;
}

.auth-helper--wide {
  margin-bottom: 4px;
}

.auth-trust {
  color: rgba(21, 33, 59, 0.62);
  font-size: 13px;
  margin: -2px 0 0;
  text-align: center;
}

.auth-inline-link {
  background: transparent;
  border: 0;
  color: #32527f;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  justify-self: center;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.auth-inline-link:hover,
.auth-inline-link:focus-visible {
  color: #20395f;
  transform: none;
}

.auth-inline-link--secondary {
  font-size: 14px;
}

.auth-secondary-action {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.auth-footnote {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 2px 0 0;
  text-align: center;
}

.auth-text-link {
  color: #32527f;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: from-font;
  text-underline-offset: 0.16em;
}

.auth-text-link:hover,
.auth-text-link:focus-visible {
  color: #20395f;
}

.magic-link-panel {
  max-width: 560px;
}

.magic-link-state {
  align-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 249, 255, 0.96));
  border: 1px solid rgba(21, 33, 59, 0.08);
  border-radius: 22px;
  box-shadow: 0 20px 44px rgba(18, 32, 58, 0.08);
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 28px 24px;
  text-align: center;
}

.magic-link-state[hidden] {
  display: none;
}

.magic-link-spinner {
  animation: magicLinkSpin 0.9s linear infinite;
  border: 3px solid rgba(32, 57, 95, 0.14);
  border-radius: 999px;
  border-top-color: #20395f;
  height: 42px;
  width: 42px;
}

.form-status--error {
  color: #9b3d3d;
}

.form-status--success {
  color: #315b45;
}

.otp-input {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 6px;
  width: 100%;
}

.otp-input__digit {
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(21, 33, 59, 0.12);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(18, 32, 58, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  caret-color: #20395f;
  color: var(--ink);
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  height: 62px;
  line-height: 1;
  outline: none;
  padding: 0;
  text-align: center;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  width: 54px;
}

.otp-input__digit[data-filled="true"] {
  border-color: rgba(21, 33, 59, 0.18);
}

.otp-input__digit:focus {
  border-color: rgba(21, 33, 59, 0.38);
  box-shadow: 0 0 0 4px rgba(21, 33, 59, 0.08), 0 18px 36px rgba(18, 32, 58, 0.14);
  transform: translateY(-1px);
}

@keyframes magicLinkSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1100px) {
  .auth-rail {
    grid-auto-flow: column;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .auth-rail--step {
    grid-auto-flow: row;
    grid-template-columns: 1fr;
  }

  .auth-social-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body[data-page="login"] .main-container {
    min-height: calc(100vh - 80px);
  }

  body[data-page="login"] .section--auth {
    padding-bottom: 24px;
    padding-top: 24px;
  }

  body[data-page="login"] .login-card {
    border-radius: 16px;
    padding: 20px;
  }

  body[data-page="login"] .login-card .button-primary {
    min-height: 48px;
  }
}

@media (max-width: 430px) {
  .otp-input {
    gap: 8px;
  }

  .otp-input__digit {
    font-size: 24px;
    height: 56px;
    width: 46px;
  }
}
