:root {
  --auth-ink: #17141c;
  --auth-muted: #4e4a55;
  --auth-line: #eceaf0;
  --auth-blue: #5c2c82;
  --auth-soft: #f7f6f9;
  --auth-green: #17643a;
  --auth-purple-950: #27113f;
  --auth-purple-900: #351653;
  --auth-purple-700: #5c2c82;
  --auth-purple-050: rgba(92, 44, 130, 0.06);
  --auth-purple-100: rgba(92, 44, 130, 0.12);
  --auth-yellow-500: #d6aa12;
  --auth-yellow-100: rgba(214, 170, 18, 0.16);
  --auth-shadow-sm: 0 8px 24px rgba(39, 17, 63, 0.05);
  --auth-shadow-lg: 0 30px 80px rgba(39, 17, 63, 0.14);
}

/* FLOA marketing system shared by sign-in, onboarding and account surfaces. */
.auth-site {
  background:
    radial-gradient(circle at 88% 6%, var(--auth-yellow-100), transparent 28rem),
    radial-gradient(circle at 12% 0, var(--auth-purple-050), transparent 34rem),
    #fff;
}

.auth-header {
  height: 76px;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  color: var(--auth-purple-950);
  font-size: 19px;
  font-weight: 900;
}

.flow-top > span:first-child {
  position: relative;
  overflow: hidden;
  color: transparent;
  background: var(--auth-purple-900);
  box-shadow: 0 8px 20px rgba(53, 22, 83, 0.18);
}

.flow-top > span:first-child::before {
  position: absolute;
  top: 8px;
  left: 6px;
  width: 20px;
  height: 4px;
  border-radius: 99px;
  background: #fff;
  box-shadow: 0 7px 0 var(--auth-yellow-500), 0 14px 0 #fff;
  transform: rotate(-34deg);
  content: "";
}

.auth-header nav a:hover,
.auth-header nav a:focus-visible {
  color: var(--auth-purple-700);
}

.auth-hero {
  min-height: 680px;
}

.auth-eyebrow {
  color: var(--auth-purple-700);
}

.hero-copy h1 {
  color: var(--auth-purple-950);
  letter-spacing: -0.055em;
}

.hero-copy h1 em {
  color: var(--auth-purple-700);
}

.primary-cta {
  border-color: var(--auth-purple-900);
  border-radius: 14px;
  background: var(--auth-purple-900);
  box-shadow: 0 12px 28px rgba(53, 22, 83, 0.16);
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.primary-cta:hover,
.primary-cta:focus-visible {
  transform: translateY(-2px);
  border-color: var(--auth-purple-700);
  background: var(--auth-purple-700);
  box-shadow: 0 16px 32px rgba(53, 22, 83, 0.2);
}

.secondary-cta {
  border-color: var(--auth-purple-100);
  border-radius: 14px;
  color: var(--auth-purple-900);
  background: #fff;
}

.secondary-cta:hover,
.secondary-cta:focus-visible {
  background: var(--auth-purple-050);
}

.hero-visual::before {
  background:
    radial-gradient(circle at 34% 28%, var(--auth-purple-100), transparent 38%),
    radial-gradient(circle at 74% 68%, var(--auth-yellow-100), transparent 32%),
    #fbf9fd;
}

.flow-window {
  border-color: var(--auth-purple-100);
  border-radius: 24px;
  box-shadow: var(--auth-shadow-lg);
}

.flow-grid .flow-wide,
.start-panel {
  background:
    radial-gradient(circle at 92% 12%, var(--auth-yellow-100), transparent 30%),
    linear-gradient(135deg, var(--auth-purple-950), var(--auth-purple-700));
}

.flow-grid .flow-wide span,
.flow-grid .flow-wide b,
.start-panel > div > p:last-child {
  color: rgba(255, 255, 255, 0.7);
}

.flow-grid article,
.feature-strip article,
.onboarding-step,
.platform-card,
.academy-portal-card,
.comparison-table-wrap,
.social-button {
  border-color: var(--auth-line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--auth-shadow-sm);
}

.flow-grid article,
.feature-strip article,
.onboarding-step,
.platform-card,
.academy-portal-card {
  border-radius: 20px;
}

.flow-grid article:hover,
.feature-strip article:hover,
.onboarding-step:hover,
.platform-card:hover,
.academy-portal-card:hover {
  border-color: var(--auth-purple-100);
  box-shadow: 0 18px 48px rgba(39, 17, 63, 0.08);
}

.comparison-table-wrap thead th {
  color: var(--auth-muted);
  background: var(--auth-purple-050);
}

.comparison-table-wrap td:nth-child(2),
.feature-strip article > span,
.application-status,
.platform-heading > span,
.step-number {
  color: var(--auth-purple-700);
}

.step-number {
  background: var(--auth-purple-100);
}

.onboarding-site,
.platform-site,
.academy-portal-site {
  background:
    radial-gradient(circle at 90% 0, var(--auth-yellow-100), transparent 26rem),
    radial-gradient(circle at 8% 0, var(--auth-purple-050), transparent 30rem),
    var(--auth-soft);
}

.auth-site input,
.auth-site select,
.auth-site textarea {
  border-color: #d6d1dc;
  border-radius: 11px;
  color: var(--auth-ink);
  background: #fff;
}

.auth-site input:focus,
.auth-site select:focus,
.auth-site textarea:focus {
  border-color: var(--auth-purple-700);
  outline: 3px solid var(--auth-purple-100);
  outline-offset: 0;
}

.auth-footer {
  border-color: var(--auth-purple-100);
}

@media (prefers-reduced-motion: reduce) {
  .primary-cta:hover,
  .primary-cta:focus-visible {
    transform: none;
  }
}

.approval-complete-dialog {
  width: min(480px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--auth-purple-100);
  border-radius: 22px;
  color: var(--auth-ink);
  background: #fff;
  box-shadow: 0 32px 88px rgba(31, 16, 48, .28);
}

.approval-complete-dialog::backdrop {
  background: rgba(25, 13, 37, .62);
  backdrop-filter: blur(3px);
}

.approval-complete-panel {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 36px;
  text-align: center;
}

.approval-complete-panel h2,
.approval-complete-panel p {
  margin: 0;
}

.approval-complete-panel > p:last-of-type {
  max-width: 36ch;
  color: var(--auth-muted);
  line-height: 1.65;
}

.approval-complete-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--auth-green);
  font-size: 26px;
  font-weight: 900;
}

.approval-complete-panel .primary-cta {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
}

@media (max-width: 480px) {
  .approval-complete-dialog {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 18px;
  }

  .approval-complete-panel {
    padding: 28px 22px 24px;
  }
}

@media (forced-colors: active) {
  .approval-complete-dialog,
  .approval-complete-icon {
    border: 2px solid CanvasText;
  }
}

/* R126: dedicated SaaS authentication surface. */
.auth-site[data-main-version="academy-auth"] {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: #211a29;
  background:
    radial-gradient(circle at 14% 8%, rgba(92, 44, 130, .11), transparent 28rem),
    radial-gradient(circle at 86% 4%, rgba(214, 170, 18, .12), transparent 24rem),
    linear-gradient(180deg, #fbf9fd 0%, #f7f6f9 46%, #fbfafc 100%);
}

.auth-site[data-main-version="academy-auth"]::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: .32;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(53, 22, 83, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 22, 83, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000 0, transparent 72%);
  content: "";
}

.auth-site[data-main-version="academy-auth"] > * {
  position: relative;
  z-index: 1;
}

.auth-site[data-main-version="academy-auth"] .auth-header--account {
  width: min(1120px, calc(100% - 40px));
  height: 72px;
}

.auth-header--account .auth-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  letter-spacing: .04em;
}

.auth-home-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
  color: #625a69;
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
}

.auth-home-link:hover,
.auth-home-link:focus-visible {
  color: var(--auth-purple-700);
}

.auth-route-shell {
  min-height: calc(100dvh - 140px);
  display: grid;
  place-items: center;
  padding: 44px 20px 64px;
}

.auth-route-card {
  width: min(100%, 596px);
  overflow: hidden;
  border: 1px solid rgba(53, 22, 83, .11);
  border-radius: 28px;
  background: rgba(255, 255, 255, .94);
  box-shadow:
    0 1px 2px rgba(39, 17, 63, .04),
    0 28px 75px rgba(39, 17, 63, .12);
  backdrop-filter: blur(18px);
}

.auth-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin: 10px;
  padding: 4px;
  border-radius: 16px;
  background: #f3f0f6;
}

.auth-mode-switch a {
  min-height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #6b6272;
  font-size: 14px;
  font-weight: 820;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.auth-mode-switch a[aria-current="page"] {
  color: var(--auth-purple-950);
  background: #fff;
  box-shadow: 0 5px 16px rgba(39, 17, 63, .09);
}

.auth-mode-switch a:hover,
.auth-mode-switch a:focus-visible {
  color: var(--auth-purple-700);
}

.auth-route-heading {
  padding: 28px 40px 6px;
  text-align: center;
}

.auth-route-heading .auth-eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .13em;
}

.auth-route-heading h1 {
  margin: 0;
  color: var(--auth-purple-950);
  font-size: clamp(30px, 5vw, 40px);
  line-height: 1.18;
  letter-spacing: -.05em;
}

.auth-route-heading > p:last-child {
  max-width: 450px;
  margin: 14px auto 0;
  color: #6a6270;
  font-size: 15px;
  line-height: 1.65;
  word-break: keep-all;
}

.auth-site[data-main-version="academy-auth"] .password-auth-card {
  width: 100%;
  margin: 0;
  padding: 26px 40px 30px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.auth-site[data-main-version="academy-auth"] .auth-field {
  gap: 9px;
  color: #342c3c;
  font-size: 13px;
  font-weight: 800;
}

.auth-site[data-main-version="academy-auth"] .auth-field > input,
.auth-password-control > input {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid #dcd6e1;
  border-radius: 13px;
  color: #211a29;
  background: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  box-shadow: inset 0 1px 1px rgba(39, 17, 63, .025);
}

.auth-site[data-main-version="academy-auth"] .auth-field > input::placeholder,
.auth-password-control > input::placeholder {
  color: #a29aa8;
  font-weight: 520;
}

.auth-site[data-main-version="academy-auth"] .field-lock-note {
  color: #766e7d;
  font-size: 12px;
  font-weight: 560;
  line-height: 1.55;
}

.auth-password-control {
  position: relative;
  display: block;
}

.auth-password-control > input {
  padding-right: 72px;
}

.auth-password-control > button {
  position: absolute;
  top: 50%;
  right: 8px;
  min-width: 54px;
  min-height: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: 9px;
  color: var(--auth-purple-700);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  transform: translateY(-50%);
  cursor: pointer;
}

.auth-password-control > button:hover,
.auth-password-control > button:focus-visible {
  background: var(--auth-purple-050);
}

.auth-site[data-main-version="academy-auth"] .login-provider-grid,
.auth-site[data-main-version="academy-auth"] .signup-method-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 18px 0 0;
}

.auth-site[data-main-version="academy-auth"] .social-button {
  width: 100%;
  min-height: 56px;
  display: grid;
  grid-template-columns: 34px 1fr 22px;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border: 1px solid #ded9e3;
  border-radius: 13px;
  color: #29222f;
  background: #fff;
  box-shadow: 0 3px 11px rgba(39, 17, 63, .035);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.auth-site[data-main-version="academy-auth"] .social-button:hover:not(:disabled),
.auth-site[data-main-version="academy-auth"] .social-button:focus-visible:not(:disabled) {
  border-color: rgba(92, 44, 130, .38);
  transform: translateY(-1px);
  box-shadow: 0 9px 24px rgba(39, 17, 63, .08);
}

.auth-site[data-main-version="academy-auth"] .social-button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.auth-site[data-main-version="academy-auth"] .social-symbol {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  margin: 0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 950;
}

.auth-site[data-main-version="academy-auth"] .social-google .social-symbol {
  color: #fff;
  background: #4285f4;
}

.auth-site[data-main-version="academy-auth"] .social-naver .social-symbol {
  color: #fff;
  background: #03c75a;
}

.auth-site[data-main-version="academy-auth"] .social-kakao .social-symbol {
  color: #241c00;
  background: #fee500;
}

.auth-site[data-main-version="academy-auth"] .social-general .social-symbol {
  color: #fff;
  background: var(--auth-purple-900);
}

.social-button-copy {
  display: grid;
  gap: 2px;
}

.social-button-copy strong {
  font-size: 14px;
  font-weight: 840;
}

.social-button-copy small {
  color: #6f6675;
  font-size: 11px;
  font-weight: 650;
}

.social-button-arrow {
  color: #8d8493;
  font-size: 17px;
  text-align: right;
}

.auth-site[data-main-version="academy-auth"] .social-auth-divider {
  margin: 22px 0 16px;
  color: #8a828f;
  font-size: 11px;
  font-weight: 740;
}

.auth-site[data-main-version="academy-auth"] .auth-consent-group {
  display: grid;
  gap: 11px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 13px;
  background: #f7f5f8;
}

.auth-site[data-main-version="academy-auth"] .auth-consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 9px;
  color: #5f5765;
  font-size: 12px;
  line-height: 1.5;
}

.auth-site[data-main-version="academy-auth"] .auth-consent input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: var(--auth-purple-700);
}

.auth-site[data-main-version="academy-auth"] .auth-consent a {
  color: var(--auth-purple-700);
  font-weight: 800;
}

.auth-method-note,
.provider-lock-notice {
  margin: 16px 0 0;
  padding: 13px 14px;
  border-radius: 11px;
  color: #6d6573;
  background: #f7f5f8;
  font-size: 12px;
  line-height: 1.6;
}

.auth-site[data-main-version="academy-auth"] .auth-card-links {
  gap: 13px;
  margin-top: 24px;
  color: #6e6674;
  font-size: 13px;
}

.auth-site[data-main-version="academy-auth"] .auth-card-links a,
.auth-site[data-main-version="academy-auth"] .auth-return-link a {
  color: var(--auth-purple-700);
}

.auth-site[data-main-version="academy-auth"] .auth-card-links .academy-signup-link {
  min-height: auto;
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-site[data-main-version="academy-auth"] .auth-return-link {
  margin: 20px 0 0;
  text-align: center;
  font-size: 13px;
}

.auth-site[data-main-version="academy-auth"] .general-signup-panel {
  margin-top: 22px;
  padding-top: 24px;
}

.auth-site[data-main-version="academy-auth"] .general-signup-heading {
  text-align: left;
}

.auth-site[data-main-version="academy-auth"] .auth-form-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.auth-site[data-main-version="academy-auth"] .phone-verification {
  border-color: #ded9e3;
  background: #faf9fb;
}

.auth-site[data-main-version="academy-auth"] .primary-cta {
  min-height: 52px;
  margin-top: 17px;
  border-radius: 13px;
  font-size: 15px;
  font-weight: 850;
}

.auth-site[data-main-version="academy-auth"] .auth-error-summary,
.auth-site[data-main-version="academy-auth"] .auth-notice {
  margin: 0 40px 2px;
  padding: 13px 14px;
  border: 1px solid #edc6cc;
  border-radius: 12px;
  color: #7e2330;
  background: #fff4f5;
  font-size: 13px;
  line-height: 1.55;
}

.auth-site[data-main-version="academy-auth"] .password-auth-card .auth-error-summary {
  margin: 0 0 16px;
}

.auth-site[data-main-version="academy-auth"] .auth-error-action {
  display: inline-flex;
  margin-left: 8px;
  color: inherit;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-site[data-main-version="academy-auth"] .auth-error-action:focus-visible {
  outline: 3px solid rgba(92, 44, 130, .28);
  outline-offset: 3px;
  border-radius: 4px;
}

.auth-scope-note {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  margin: 0 40px 36px;
  padding: 15px;
  border: 1px solid rgba(23, 105, 79, .13);
  border-radius: 13px;
  color: #3f5b51;
  background: #f2faf6;
}

.auth-scope-note > span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #17694f;
  font-size: 12px;
  font-weight: 900;
}

.auth-scope-note p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}

.auth-route-footer {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 20px;
  border: 0;
  color: #786f7d;
}

.auth-route-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.auth-route-footer a {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.auth-route-footer a:hover,
.auth-route-footer a:focus-visible {
  color: var(--auth-purple-700);
}

@media (max-width: 640px) {
  .auth-site[data-main-version="academy-auth"] .auth-header--account {
    width: calc(100% - 28px);
    height: 64px;
  }

  .auth-route-shell {
    min-height: calc(100dvh - 124px);
    align-items: start;
    padding: 20px 12px 40px;
  }

  .auth-route-card {
    border-radius: 22px;
  }

  .auth-route-heading {
    padding: 23px 22px 4px;
  }

  .auth-route-heading h1 {
    font-size: 31px;
  }

  .auth-site[data-main-version="academy-auth"] .password-auth-card {
    padding: 23px 22px 25px;
  }

  .auth-site[data-main-version="academy-auth"] .auth-error-summary,
  .auth-site[data-main-version="academy-auth"] .auth-notice {
    margin-inline: 22px;
  }

  .auth-scope-note {
    margin: 0 22px 26px;
  }

  .auth-site[data-main-version="academy-auth"] .auth-form-grid.compact,
  .phone-verification-grid {
    grid-template-columns: 1fr;
  }

  .auth-route-footer {
    flex-direction: column;
    gap: 10px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-site[data-main-version="academy-auth"] .social-button {
    transition: none;
  }

  .auth-site[data-main-version="academy-auth"] .social-button:hover:not(:disabled),
  .auth-site[data-main-version="academy-auth"] .social-button:focus-visible:not(:disabled) {
    transform: none;
  }
}

/* Restored public main page: approved 2026-07-30 message and section order. */
.auth-site--restored-main .auth-header {
  position: sticky;
  z-index: 30;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.auth-header nav .auth-nav-cta {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 11px;
  color: #fff;
  background: var(--auth-purple-900);
  box-shadow: 0 10px 24px rgba(53, 22, 83, 0.16);
}

.auth-header nav .auth-nav-cta:hover,
.auth-header nav .auth-nav-cta:focus-visible {
  color: #fff;
  background: var(--auth-purple-700);
}

.auth-site--restored-main .restored-main-hero {
  position: relative;
  width: 100%;
  min-height: 744px;
  display: flex;
  justify-content: center;
  padding: 128px 20px 104px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 84% 32%, var(--auth-yellow-100), transparent 28rem),
    radial-gradient(circle at 18% 4%, var(--auth-purple-050), transparent 32rem),
    linear-gradient(180deg, rgba(247, 246, 249, 0.2), #fff);
}

.restored-main-hero::before {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(92, 44, 130, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 44, 130, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
  content: "";
}

.restored-main-hero .hero-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 940px);
}

.restored-main-hero .auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 24px;
  padding: 9px 13px;
  border: 1px solid var(--auth-purple-100);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--auth-shadow-sm);
  letter-spacing: -.01em;
  text-transform: none;
}

.restored-main-hero .auth-eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--auth-yellow-500);
  box-shadow: 0 0 0 5px var(--auth-yellow-100);
}

.restored-main-hero .hero-copy h1 {
  max-width: 940px;
  margin: 0 auto;
  font-size: clamp(48px, 5.3vw, 72px);
  line-height: 1.14;
  letter-spacing: -.058em;
  word-break: keep-all;
}

.restored-main-hero .hero-copy > .hero-description {
  max-width: 760px;
  margin: 28px auto 0;
  color: var(--auth-muted);
  font-size: 18px;
  line-height: 1.75;
  letter-spacing: -.02em;
  word-break: keep-all;
}

.restored-main-hero .hero-copy > .hero-feature-line {
  max-width: 820px;
  margin: 22px auto 0;
  color: var(--auth-purple-700);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.7;
  letter-spacing: -.025em;
  word-break: keep-all;
}

.restored-main-hero .hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.auth-site--restored-main .plan-showcase {
  padding-top: 92px;
  margin-bottom: 104px;
}

.auth-site--restored-main .plan-showcase-heading,
.restored-product-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.auth-site--restored-main .plan-showcase-heading h2,
.restored-product-heading h2 {
  margin: 8px 0 12px;
  color: var(--auth-purple-950);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.2;
  letter-spacing: -.045em;
}

.restored-product-heading > p:last-child {
  margin: 0;
  color: var(--auth-muted);
  line-height: 1.7;
}

.auth-site--restored-main .public-plan-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.auth-site--restored-main .public-plan-grid article {
  min-height: 410px;
}

.plan-card-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 0 16px;
  border: 1px solid var(--auth-purple-100);
  border-radius: 11px;
  color: var(--auth-purple-900);
  background: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.public-plan-grid .is-featured .plan-card-link {
  border-color: var(--auth-yellow-500);
  color: var(--auth-purple-950);
  background: var(--auth-yellow-500);
}

.restored-product-section {
  padding: 104px 20px 118px;
  background:
    radial-gradient(circle at 84% 12%, var(--auth-yellow-100), transparent 24rem),
    radial-gradient(circle at 12% 18%, var(--auth-purple-050), transparent 28rem),
    var(--auth-soft);
}

.restored-product-stage {
  position: relative;
  width: min(1080px, 100%);
  margin: 0 auto;
}

.restored-product-stage .hero-visual {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 48px 32px;
}

.restored-product-stage .hero-visual::before {
  border-radius: 32% 68% 48% 52%;
}

@media (max-width: 1080px) {
  .auth-site--restored-main .public-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .auth-site--restored-main .auth-header nav {
    align-items: center;
  }

  .auth-site--restored-main .restored-main-hero {
    min-height: auto;
    padding: 88px 18px 76px;
  }

  .restored-main-hero .hero-copy h1 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .restored-main-hero .hero-copy > .hero-description {
    font-size: 16px;
  }

  .restored-main-hero .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .auth-site--restored-main .plan-showcase {
    padding-top: 72px;
  }

  .auth-site--restored-main .public-plan-grid {
    grid-template-columns: 1fr;
  }

  .auth-site--restored-main .public-plan-grid article {
    min-height: auto;
  }

  .restored-product-section {
    padding: 76px 16px 90px;
  }

  .restored-product-stage .hero-visual {
    padding: 30px 4px 38px;
  }
}

.auth-site {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: clip;
  background: #fff;
  color: var(--auth-ink);
  font-family: Pretendard, "Noto Sans KR", system-ui, sans-serif;
}

.auth-notice {
  width: min(1180px, calc(100% - 40px));
  margin: 18px auto 0;
  padding: 14px 18px;
  border: 1px solid #d7c56e;
  border-radius: 12px;
  background: #fff9d9;
  color: #553f00;
  font-weight: 700;
}

.auth-header {
  width: min(1180px, calc(100% - 40px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-brand {
  color: var(--auth-ink);
  text-decoration: none;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -.03em;
}

.auth-brand-mark {
  display: block;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  margin-right: 8px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(53, 22, 83, 0.18);
}

.auth-header nav {
  display: flex;
  gap: 26px;
}

.auth-header nav a {
  color: var(--auth-muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.auth-header nav button {
  padding: 0;
  border: 0;
  color: var(--auth-muted);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.auth-hero {
  width: min(1180px, calc(100% - 40px));
  min-height: 610px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: 70px;
}

.auth-eyebrow {
  margin: 0 0 12px;
  color: var(--auth-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(44px, 5vw, 70px);
  line-height: 1.1;
  letter-spacing: -.06em;
}

.hero-copy h1 em {
  color: var(--auth-blue);
  font-style: normal;
}

.hero-copy > p:not(.auth-eyebrow) {
  max-width: 580px;
  margin: 24px 0 30px;
  color: var(--auth-muted);
  font-size: 18px;
  line-height: 1.7;
}

.primary-cta,
.secondary-cta {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--auth-blue);
  border-radius: 12px;
  background: var(--auth-blue);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.secondary-cta {
  background: #fff;
  color: var(--auth-ink);
  border-color: var(--auth-line);
}

.trust-row {
  display: flex;
  gap: 22px;
  padding: 0;
  margin: 26px 0 0;
  color: var(--auth-muted);
  font-size: 13px;
  list-style: none;
}

.trust-row li::before {
  content: "✓";
  margin-right: 6px;
  color: var(--auth-green);
  font-weight: 900;
}

.hero-visual {
  position: relative;
  padding: 54px 28px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 48% 52% 52% 48%;
  background: radial-gradient(circle at 40% 30%, #dce7ff, #eef4ff 54%, #fff 73%);
  transform: rotate(-5deg);
}

.flow-window {
  position: relative;
  overflow: hidden;
  border: 1px solid #e3e9f3;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(39, 94, 254, .14);
  transform: rotate(1.5deg);
}

.flow-top {
  height: 64px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--auth-line);
}

.flow-top span {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--auth-blue);
}

.flow-top small {
  margin-left: auto;
  color: var(--auth-muted);
}

.flow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 22px;
  background: var(--auth-soft);
}

.flow-grid article {
  min-height: 110px;
  padding: 20px;
  border-radius: 16px;
  background: #fff;
}

.flow-grid article span,
.flow-grid article b {
  display: block;
  color: var(--auth-muted);
  font-size: 12px;
}

.flow-grid article strong {
  display: block;
  margin-top: 12px;
  font-size: 30px;
}

.flow-grid .flow-wide {
  min-height: 150px;
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #19346c, #275efe);
  color: #fff;
}

.flow-grid .flow-wide span,
.flow-grid .flow-wide b {
  color: #dbe5ff;
}

.flow-grid .flow-wide strong {
  font-size: 22px;
}

.flow-grid .flow-wide b {
  margin-top: 22px;
}

.dashboard-overview-context {
  padding: 18px 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.dashboard-overview-context small,
.dashboard-overview-context p {
  color: var(--auth-muted);
}

.dashboard-overview-context h2,
.dashboard-overview-context p {
  margin: 4px 0 0;
}

.competitor-comparison {
  width: min(1180px, calc(100% - 48px));
  margin: 80px auto;
}

.comparison-heading {
  max-width: 720px;
  margin-bottom: 24px;
}

.comparison-heading h2 {
  margin: 6px 0 10px;
  font-size: clamp(28px, 4vw, 42px);
}

.comparison-heading p:last-child,
.comparison-source {
  color: var(--auth-muted);
}

.comparison-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--auth-line);
  border-radius: 20px;
  background: #fff;
}

.comparison-table-wrap table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.comparison-table-wrap th,
.comparison-table-wrap td {
  padding: 20px;
  border-bottom: 1px solid var(--auth-line);
  text-align: left;
  vertical-align: top;
}

.comparison-table-wrap thead th {
  background: var(--auth-soft);
  color: var(--auth-muted);
  font-size: 13px;
}

.comparison-table-wrap tbody tr:last-child > * {
  border-bottom: 0;
}

.comparison-table-wrap td:nth-child(2) {
  color: var(--auth-blue);
}

.comparison-table-wrap small,
.comparison-source {
  font-size: 12px;
  line-height: 1.6;
}

.comparison-source {
  margin-top: 12px;
}

.start-panel {
  width: min(1080px, calc(100% - 40px));
  margin: 20px auto 90px;
  padding: 44px;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 60px;
  border-radius: 28px;
  background: #13244c;
  color: #fff;
}

.start-panel h2 {
  margin: 0 0 12px;
  font-size: 32px;
}

.start-panel > div > p:last-child {
  color: #c8d3ea;
  line-height: 1.7;
}

.provider-list {
  display: grid;
  gap: 10px;
}

.social-button {
  min-height: 52px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  background: #fff;
  color: #172033;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
}

.social-symbol {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  background: #edf1f8;
  font-weight: 900;
}

.social-naver .social-symbol {
  background: #03c75a;
  color: #fff;
}

.social-kakao .social-symbol {
  background: #fee500;
}

.social-button.is-disabled {
  cursor: not-allowed;
  opacity: .45;
}

.provider-list small {
  color: #aab9d8;
  line-height: 1.6;
}

.feature-strip {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 90px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-strip article {
  padding: 30px;
  border: 1px solid var(--auth-line);
  border-radius: 18px;
}

.feature-strip article > span {
  color: var(--auth-blue);
  font-weight: 850;
}

.feature-strip h3 {
  margin: 18px 0 8px;
}

.feature-strip p {
  margin: 0;
  color: var(--auth-muted);
  line-height: 1.6;
}

.auth-footer {
  padding: 28px;
  border-top: 1px solid var(--auth-line);
  color: var(--auth-muted);
  text-align: center;
  font-size: 13px;
}

.onboarding-site,
.platform-site,
.academy-portal-site {
  background: var(--auth-soft);
}

.onboarding-main,
.platform-main,
.academy-portal-main {
  width: min(1100px, calc(100% - 40px));
  margin: 30px auto 80px;
}

.onboarding-heading,
.platform-heading {
  margin-bottom: 26px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

.onboarding-heading h1,
.platform-heading h1,
.academy-identity h1 {
  margin: 0;
  font-size: 38px;
  letter-spacing: -.04em;
}

.onboarding-heading p:last-child,
.academy-identity p {
  color: var(--auth-muted);
}

.application-status,
.platform-heading > span {
  padding: 9px 13px;
  border: 1px solid #cbd7ef;
  border-radius: 999px;
  background: #fff;
  color: var(--auth-blue);
  font-size: 13px;
  font-weight: 750;
}

.auth-alert {
  margin-bottom: 18px;
  padding: 18px 22px;
  border: 1px solid #f1c15c;
  border-radius: 14px;
  background: #fff8e8;
}

.auth-alert p {
  margin: 6px 0 0;
}

.onboarding-form {
  display: grid;
  gap: 18px;
}

.onboarding-step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  padding: 30px;
  border: 1px solid var(--auth-line);
  border-radius: 20px;
  background: #fff;
}

.step-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: #eaf0ff;
  color: var(--auth-blue);
  font-weight: 850;
}

.step-body h2 {
  margin: 4px 0 7px;
  font-size: 22px;
}

.step-body > p {
  margin: 0 0 24px;
  color: var(--auth-muted);
  font-size: 14px;
}

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

.auth-field {
  display: grid;
  gap: 8px;
  color: #3f4b64;
  font-size: 13px;
  font-weight: 700;
}

.auth-field input,
.auth-field select {
  min-width: 0;
  height: 46px;
  padding: 0 13px;
  border: 1px solid #ccd6e6;
  border-radius: 10px;
  background: #fff;
  color: var(--auth-ink);
  font: inherit;
  font-weight: 500;
}

.auth-field input:focus,
.auth-field select:focus {
  border-color: var(--auth-blue);
  outline: 3px solid rgba(39, 94, 254, .12);
}

.consent-list {
  display: grid;
  gap: 12px;
}

.consent-list label {
  padding: 14px;
  display: flex;
  gap: 10px;
  border-radius: 10px;
  background: var(--auth-soft);
}

.onboarding-actions {
  position: sticky;
  bottom: 16px;
  z-index: 2;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  border: 1px solid var(--auth-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 50px rgba(25, 52, 108, .12);
  backdrop-filter: blur(12px);
}

.onboarding-actions p {
  margin: 0 auto 0 0;
  color: var(--auth-muted);
  font-size: 13px;
}

.onboarding-actions p[data-processing="true"] {
  color: var(--auth-purple-900);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}

.platform-header {
  width: 100%;
  padding: 0 max(28px, calc((100% - 1260px) / 2));
  background: #111d37;
}

.platform-header .auth-brand,
.platform-header nav a,
.platform-header nav button {
  color: #fff;
}

.platform-main {
  width: min(1260px, calc(100% - 48px));
}

.platform-summary {
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.platform-summary article,
.platform-panel {
  border: 1px solid var(--auth-line);
  border-radius: 16px;
  background: #fff;
}

.platform-summary article {
  padding: 22px;
}

.platform-summary span {
  color: var(--auth-muted);
  font-size: 13px;
}

.platform-summary strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
}

.platform-panel {
  margin-bottom: 18px;
  padding: 22px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.panel-heading h2 {
  margin: 0;
  font-size: 20px;
}

.panel-heading span {
  color: var(--auth-muted);
  font-size: 13px;
}

.application-row {
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--auth-line);
}

.application-row:first-child {
  border-top: 0;
}

.application-row > div:first-child {
  display: grid;
  gap: 5px;
}

.application-row span {
  color: var(--auth-muted);
  font-size: 13px;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.row-actions button {
  padding: 8px 11px;
  border: 1px solid var(--auth-line);
  border-radius: 9px;
  background: #fff;
  color: var(--auth-ink);
  cursor: pointer;
}

.row-actions .approve {
  border-color: var(--auth-blue);
  background: var(--auth-blue);
  color: #fff;
}

.platform-resource-error {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #e6c7cb;
  border-radius: 10px;
  color: #872836;
  background: #fff5f6;
  font-weight: 700;
}

.error-report-admin-list {
  display: grid;
  gap: 14px;
}

.error-report-admin-row {
  padding: 18px;
  border: 1px solid var(--auth-line);
  border-radius: 14px;
  background: var(--auth-soft);
}

.error-report-admin-meta {
  display: grid;
  gap: 7px;
}

.error-report-admin-meta > span,
.error-report-admin-meta > small {
  color: var(--auth-muted);
  font-size: 12px;
}

.error-report-admin-meta p {
  margin: 0;
  white-space: pre-wrap;
}

.error-report-attachments,
.error-report-status-actions {
  margin-top: 14px;
}

.error-report-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.error-report-attachments button {
  padding: 8px 10px;
  border: 1px solid var(--auth-line);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}

.platform-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.platform-panel ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.platform-panel li {
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--auth-line);
}

.platform-panel li span,
.audit-placeholder p,
.empty-platform {
  color: var(--auth-muted);
  font-size: 13px;
}

.academy-identity {
  padding: 40px 0 26px;
  text-align: center;
}

.academy-identity > span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--auth-blue);
  font-size: 12px;
  font-weight: 850;
}

.role-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.role-cards > a {
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--auth-line);
  border-radius: 18px;
  background: #fff;
  color: var(--auth-ink);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease;
}

.role-cards > a:hover,
.role-cards > a.selected {
  border-color: var(--auth-blue);
  transform: translateY(-3px);
}

.role-cards > a > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  background: #eaf0ff;
  color: var(--auth-blue);
  font-weight: 850;
}

.role-cards h2 {
  margin: 26px 0 8px;
}

.role-cards p {
  min-height: 48px;
  color: var(--auth-muted);
  font-size: 14px;
  line-height: 1.6;
}

.role-cards b {
  color: var(--auth-blue);
  font-size: 13px;
}

.role-join-panel {
  max-width: 760px;
  margin: 24px auto 0;
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  border: 1px solid var(--auth-line);
  border-radius: 18px;
  background: #fff;
}

.role-join-panel h2 {
  margin: 0 0 10px;
}

.role-join-panel > div > p:last-child {
  color: var(--auth-muted);
  font-size: 14px;
  line-height: 1.6;
}

.role-join-panel form {
  display: grid;
  gap: 12px;
}

.owner-social-compact {
  grid-column: 1;
  display: flex;
  gap: 8px;
}

.owner-social-compact a {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: var(--auth-soft);
  color: var(--auth-ink);
  font-weight: 850;
  text-decoration: none;
}

.auth-error {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.auth-error-logo {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(53, 22, 83, 0.18);
}

.auth-error p {
  color: var(--auth-muted);
}

.auth-error a {
  color: var(--auth-blue);
}

@media (max-width: 820px) {
  .auth-header {
    width: calc(100% - 28px);
    height: 66px;
  }

  .auth-header nav {
    gap: 14px;
  }

  .auth-header nav a:not(:last-child) {
    display: none;
  }

  .auth-hero {
    width: calc(100% - 32px);
    min-height: auto;
    padding: 50px 0 30px;
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .hero-copy h1 {
    font-size: clamp(40px, 12vw, 56px);
  }

  .hero-copy > p:not(.auth-eyebrow) {
    font-size: 16px;
  }

  .trust-row {
    flex-direction: column;
    gap: 8px;
  }

  .hero-visual {
    padding: 24px 5px 40px;
  }

  .start-panel {
    width: calc(100% - 32px);
    padding: 26px;
    grid-template-columns: 1fr;
    gap: 22px;
    border-radius: 22px;
  }

  .feature-strip {
    width: calc(100% - 32px);
    grid-template-columns: 1fr;
  }

  .onboarding-main,
  .platform-main,
  .academy-portal-main {
    width: calc(100% - 28px);
    margin-top: 18px;
  }

  .onboarding-heading,
  .platform-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .onboarding-heading h1,
  .platform-heading h1,
  .academy-identity h1 {
    font-size: 30px;
  }

  .onboarding-step {
    padding: 22px 18px;
    grid-template-columns: 1fr;
  }

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

  .onboarding-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .onboarding-actions p {
    margin: 0 0 6px;
  }

  .platform-summary {
    grid-template-columns: 1fr 1fr;
  }

  .application-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .row-actions {
    justify-content: flex-start;
  }

  .platform-columns,
  .role-join-panel {
    grid-template-columns: 1fr;
  }

  .role-cards {
    grid-template-columns: 1fr;
  }

  .role-cards > a {
    min-height: 0;
  }

  .role-cards p {
    min-height: 0;
  }

  .owner-social-compact {
    grid-column: 1;
  }
}

.password-auth-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 24px;
}

.password-auth-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.password-auth-heading h2,
.password-auth-card h3 {
  margin: 6px 0 10px;
}

.password-auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  width: min(100%, 720px);
  margin-inline: auto;
}

.password-auth-card {
  background: #fff;
  border: 1px solid #dfe5ee;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 16px 42px rgb(29 48 80 / 8%);
}

.password-auth-card .auth-form-grid.compact {
  margin: 22px 0 14px;
}

.password-auth-card .primary-cta {
  width: 100%;
  min-height: 48px;
  border: 0;
  cursor: pointer;
}

.password-auth-card .primary-cta:disabled {
  opacity: .65;
  cursor: wait;
}

.password-auth-card .provider-list small {
  color: #4d5a72;
}

.academy-login-card {
  width: min(100%, 520px);
  margin-inline: auto;
}

.auth-card-links {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  text-align: center;
}

.auth-card-links a,
.auth-return-link a,
.text-button {
  color: #3758d8;
  font-weight: 760;
}

.auth-card-links .academy-signup-link {
  min-height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid #cbd5e6;
  border-radius: 12px;
  text-decoration: none;
}

.signup-card {
  width: 100%;
}

.provider-lock-notice,
.general-signup-heading p,
.auth-return-link {
  color: #59657a;
  line-height: 1.65;
}

.signup-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.signup-method-grid .social-button {
  width: 100%;
  border: 1px solid #d9e0eb;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

.social-general .social-symbol {
  background: #351653;
  color: #fff;
  font-size: .7rem;
}

.general-signup-panel {
  padding-top: 24px;
  border-top: 1px solid #e1e6ef;
}

.general-signup-panel[hidden] {
  display: none;
}

.general-signup-heading h4 {
  margin: 6px 0 8px;
  font-size: 1.25rem;
}

.phone-verification {
  margin: 20px 0;
  padding: 18px;
  border: 1px solid #d9e0eb;
  border-radius: 14px;
}

.phone-verification legend {
  padding: 0 8px;
  font-weight: 800;
}

.phone-verification-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}

.phone-verification-grid .secondary-cta {
  min-height: 46px;
  white-space: nowrap;
}

.phone-verification-status {
  margin: 10px 0 0;
  color: #59657a;
  font-size: .88rem;
}

.text-button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.auth-field input[readonly] {
  border-color: #cbd5e1;
  background: #f3f5f8;
  color: #475569;
  cursor: not-allowed;
}

.field-lock-note {
  display: block;
  margin-top: 6px;
  color: #59657a;
  font-size: .78rem;
}

.provider-lock-banner {
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid #d7c9ec;
  border-radius: 14px;
  background: #f8f4ff;
}

.provider-lock-banner p {
  margin: 6px 0 0;
  color: #5f5670;
  line-height: 1.6;
}

.auth-step-label {
  color: #3758d8;
  font-size: .82rem;
  font-weight: 800;
}

.auth-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0 20px;
  line-height: 1.5;
}

.auth-consent input {
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.auth-error-summary {
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid #d64545;
  border-radius: 10px;
  background: #fff5f5;
  color: #8e2020;
}

.social-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 18px;
  color: #6b7280;
  font-size: .86rem;
}

.social-auth-divider::before,
.social-auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #dfe5ee;
}

.login-provider-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.login-provider-grid .social-button {
  justify-content: center;
  padding-inline: 12px;
  font-size: .9rem;
}

.sample-dashboard-label {
  margin: 0 0 12px;
  color: var(--auth-purple-700);
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .04em;
}

.plan-showcase {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 90px;
}

.plan-showcase-heading {
  max-width: 720px;
  margin-bottom: 24px;
}

.plan-showcase-heading h2 {
  margin: 8px 0;
  color: var(--auth-purple-950);
  letter-spacing: -.035em;
}

.plan-showcase-heading p:last-child,
.plan-public-note {
  color: var(--auth-muted);
  line-height: 1.7;
}

.public-plan-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-plan-grid article {
  min-height: 250px;
}

.public-plan-grid article > p {
  line-height: 1.6;
}

.public-plan-grid article > ul {
  margin-top: auto;
}

.public-plan-grid .plan-offering-head span {
  color: var(--auth-purple-700);
  font-weight: 900;
  letter-spacing: .12em;
}

.public-plan-grid .is-featured .plan-offering-head span {
  color: var(--auth-yellow-500);
}

.plan-public-note {
  margin: 16px 0 0;
  font-size: .86rem;
}

@media (max-width: 800px) {
  .password-auth-section {
    padding: 48px 16px;
  }

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

  .password-auth-card {
    padding: 22px 18px;
    border-radius: 16px;
  }

  .signup-method-grid,
  .phone-verification-grid {
    grid-template-columns: 1fr;
  }

  .login-provider-grid,
  .public-plan-grid {
    grid-template-columns: 1fr;
  }

  .plan-showcase {
    width: min(100% - 32px, 720px);
  }
}

/* Final cascade for the FLOA visual language. */
.auth-site {
  background:
    radial-gradient(circle at 88% 6%, var(--auth-yellow-100), transparent 28rem),
    radial-gradient(circle at 12% 0, var(--auth-purple-050), transparent 34rem),
    #fff;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  color: var(--auth-purple-950);
  font-size: 19px;
  font-weight: 900;
}

.flow-top > span:first-child {
  position: relative;
  overflow: hidden;
  color: transparent;
  background: var(--auth-purple-900);
  box-shadow: 0 8px 20px rgba(53, 22, 83, 0.18);
}

.flow-top > span:first-child::before {
  position: absolute;
  top: 8px;
  left: 6px;
  width: 20px;
  height: 4px;
  border-radius: 99px;
  background: #fff;
  box-shadow: 0 7px 0 var(--auth-yellow-500), 0 14px 0 #fff;
  transform: rotate(-34deg);
  content: "";
}

.auth-header nav a:hover,
.auth-header nav a:focus-visible,
.auth-eyebrow,
.hero-copy h1 em,
.comparison-table-wrap td:nth-child(2),
.feature-strip article > span,
.application-status,
.platform-heading > span,
.step-number,
.auth-step-label {
  color: var(--auth-purple-700);
}

.hero-copy h1 {
  color: var(--auth-purple-950);
  letter-spacing: -0.055em;
}

.primary-cta {
  border-color: var(--auth-purple-900);
  border-radius: 14px;
  background: var(--auth-purple-900);
  box-shadow: 0 12px 28px rgba(53, 22, 83, 0.16);
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.primary-cta:hover,
.primary-cta:focus-visible {
  transform: translateY(-2px);
  border-color: var(--auth-purple-700);
  background: var(--auth-purple-700);
  box-shadow: 0 16px 32px rgba(53, 22, 83, 0.2);
}

.secondary-cta {
  border-color: var(--auth-purple-100);
  border-radius: 14px;
  color: var(--auth-purple-900);
  background: #fff;
}

.secondary-cta:hover,
.secondary-cta:focus-visible {
  background: var(--auth-purple-050);
}

.hero-visual::before {
  background:
    radial-gradient(circle at 34% 28%, var(--auth-purple-100), transparent 38%),
    radial-gradient(circle at 74% 68%, var(--auth-yellow-100), transparent 32%),
    #fbf9fd;
}

.flow-window {
  border-color: var(--auth-purple-100);
  border-radius: 24px;
  box-shadow: var(--auth-shadow-lg);
}

.flow-grid .flow-wide,
.start-panel {
  background:
    radial-gradient(circle at 92% 12%, var(--auth-yellow-100), transparent 30%),
    linear-gradient(135deg, var(--auth-purple-950), var(--auth-purple-700));
}

.flow-grid .flow-wide span,
.flow-grid .flow-wide b,
.start-panel > div > p:last-child {
  color: rgba(255, 255, 255, 0.7);
}

.flow-grid article,
.feature-strip article,
.onboarding-step,
.platform-card,
.academy-portal-card,
.comparison-table-wrap,
.social-button,
.password-auth-card,
.signup-method-card {
  border-color: var(--auth-line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--auth-shadow-sm);
}

.flow-grid article,
.feature-strip article,
.onboarding-step,
.platform-card,
.academy-portal-card,
.password-auth-card,
.signup-method-card {
  border-radius: 20px;
}

.comparison-table-wrap thead th {
  color: var(--auth-muted);
  background: var(--auth-purple-050);
}

.step-number {
  background: var(--auth-purple-100);
}

.onboarding-site,
.platform-site,
.academy-portal-site,
.password-auth-section {
  background:
    radial-gradient(circle at 90% 0, var(--auth-yellow-100), transparent 26rem),
    radial-gradient(circle at 8% 0, var(--auth-purple-050), transparent 30rem),
    var(--auth-soft);
}

.auth-site input,
.auth-site select,
.auth-site textarea {
  border-color: #d6d1dc;
  border-radius: 11px;
  color: var(--auth-ink);
  background: #fff;
}

.auth-site input:focus,
.auth-site select:focus,
.auth-site textarea:focus {
  border-color: var(--auth-purple-700);
  outline: 3px solid var(--auth-purple-100);
  outline-offset: 0;
}

.provider-lock-banner {
  border-color: var(--auth-purple-100);
  background: var(--auth-purple-050);
}

.provider-lock-banner p {
  color: var(--auth-muted);
}

.auth-site[data-main-version="academy-auth"] .auth-error-summary[data-tone="progress"] {
  border-color: rgba(92, 44, 130, .2);
  color: var(--auth-purple-800);
  background: var(--auth-purple-050);
}

.social-button[aria-busy="true"] {
  cursor: wait;
}

.oauth-popup-shell {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: clamp(28px, 7vw, 56px);
  text-align: center;
  color: var(--auth-ink);
  background:
    radial-gradient(circle at 50% 0, var(--auth-purple-100), transparent 24rem),
    var(--auth-soft);
}

.oauth-popup-shell h1 {
  max-width: 440px;
  margin: 12px 0 10px;
  font-size: clamp(1.55rem, 5vw, 2.1rem);
  line-height: 1.25;
  letter-spacing: -.035em;
}

.oauth-popup-shell > p:not(.auth-eyebrow) {
  max-width: 420px;
  margin: 0;
  color: var(--auth-muted);
  line-height: 1.65;
}

.oauth-popup-shell .primary-cta {
  min-width: min(280px, 100%);
  margin-top: 26px;
}

.oauth-popup-logo {
  display: block;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(92, 44, 130, .2);
}

.oauth-popup-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border-radius: 18px;
  color: #fff;
  background: var(--auth-purple-700);
  box-shadow: 0 14px 34px rgba(92, 44, 130, .2);
  font-size: 1.35rem;
  font-weight: 900;
}

.oauth-popup-mark.is-success {
  background: #17694f;
}

.oauth-popup-mark.is-error {
  background: #a52f43;
}

.oauth-popup-loader {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  color: var(--auth-purple-800);
  font-size: .9rem;
  font-weight: 750;
}

.oauth-popup-loader span {
  width: 16px;
  height: 16px;
  border: 2px solid var(--auth-purple-100);
  border-top-color: var(--auth-purple-700);
  border-radius: 50%;
  animation: oauth-popup-spin .8s linear infinite;
}

@keyframes oauth-popup-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .primary-cta:hover,
  .primary-cta:focus-visible {
    transform: none;
  }

  .oauth-popup-loader span {
    animation: none;
  }
}
