/* Layout shared by every public/auth page — a centered card on a soft
   background. */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(
      1200px 600px at 15% -10%,
      color-mix(in srgb, var(--color-primary) 6%, transparent),
      transparent
    ),
    var(--color-bg);
}
.brand-row {
  margin-bottom: 32px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
}
.auth-card.wide {
  max-width: 480px;
}
.auth-card h1 {
  font: var(--text-h1);
  margin-bottom: 6px;
}
.auth-subtitle {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 26px;
}
.auth-section-label {
  font: var(--text-caption);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--color-text-faint);
  margin-bottom: 14px;
}
.auth-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 20px 0;
}
.footer-link {
  text-align: center;
  margin-top: 22px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.footer-link a {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
}
.footer-link a:hover {
  text-decoration: underline;
}

/* Onboarding progress — Account → Verify Email → Select Plan → Center Setup
   → Ready, shown on signup.html/verify-email.html/select-plan.html
   (whichever step is current/done) and on center-setup.html itself (step 4
   active, with its own internal A–F sub-progress — see .setup-progress
   below). Payment is still part of the select-plan → Stripe redirect, not
   its own screen. */
.onboarding-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  width: 100%;
  max-width: 520px;
  margin: 0 auto 28px;
}
.onboarding-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.onboarding-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--color-neutral-bg);
  color: var(--color-text-faint);
  flex-shrink: 0;
}
.onboarding-dot .icon {
  width: 13px;
  height: 13px;
}
.onboarding-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-text-faint);
  white-space: nowrap;
}
.onboarding-step.is-active .onboarding-dot {
  background: var(--color-primary);
  color: #fff;
}
.onboarding-step.is-active .onboarding-label {
  color: var(--color-primary);
}
.onboarding-step.is-done .onboarding-dot {
  background: var(--color-success-bg);
  color: var(--color-success-strong);
}
.onboarding-line {
  flex: 1 1 auto;
  height: 2px;
  background: var(--color-border);
  margin-top: 13px;
  min-width: 14px;
}
.onboarding-line.is-done {
  background: var(--color-success);
}

/* A colored icon-in-a-circle, replacing a big raw emoji on confirmation/
   error pages (verify email, reset password, 401/404/500). Tone follows
   the same alert palette everywhere else in the app. */
.auth-icon-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  background: var(--color-primary-subtle);
  color: var(--color-primary);
}
.auth-icon-badge .icon {
  width: 28px;
  height: 28px;
}
.auth-icon-badge.success {
  background: var(--color-success-bg);
  color: var(--color-success-strong);
}
.auth-icon-badge.danger {
  background: var(--color-danger-bg);
  color: var(--color-danger);
}
.auth-icon-badge.warning {
  background: var(--color-warning-bg);
  color: var(--color-warning);
}

/* Password requirement checklist (signup / reset password) — each item
   toggles a fulfilled state via JS rather than only being static text. */
.pw-requirements {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 8px 0 var(--space-4);
  font-size: 0.8rem;
  color: var(--color-text-faint);
}
.pw-requirements li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pw-requirements li .icon {
  width: 14px;
  height: 14px;
  color: var(--color-text-faint);
}
.pw-requirements li.met {
  color: var(--color-success-strong);
}
.pw-requirements li.met .icon {
  color: var(--color-success);
}

/* ── Center Setup wizard (center-setup.html) — reuses the same centered
   auth-card layout as the rest of onboarding, just wider since it holds
   rosters/tables rather than a single form. ── */
.auth-card.setup-wide {
  max-width: 820px;
}
.setup-progress {
  margin-bottom: var(--space-6);
}
.setup-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--color-neutral-bg);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 8px;
}
.setup-progress-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: var(--radius-pill);
  transition: width var(--duration-base) var(--ease-standard);
}
.setup-progress-label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-align: center;
}
.setup-step {
  display: none;
}
.setup-step.active {
  display: block;
  animation: fade-in var(--duration-base) var(--ease-standard);
}
.setup-step h2 {
  font: var(--text-h2);
  margin-bottom: 4px;
}
.setup-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}
.setup-actions .spacer {
  flex: 1;
}
.setup-section {
  margin-bottom: var(--space-6);
}
.setup-section:last-child {
  margin-bottom: 0;
}
.setup-section-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: var(--space-3);
}

/* Center Setup's own .toolbar — a horizontal control row (segmented-mode
   buttons, an import action, a search+filter pair) that wraps on narrow
   widths instead of overflowing. This page never loads admin.css, so it
   can't rely on admin.css's own .toolbar (public/css/admin.css:437) —
   defined here, scoped to auth.css's own pages, instead of pulling in the
   whole admin stylesheet for one class. Kept in sync in shape (not
   literally shared) with admin.css's rule; admin.html never loads auth.css
   so the two can never collide in the same cascade. */
.toolbar {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  flex-wrap: wrap;
}

/* Manual student-entry roster rows */
.student-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.student-row input[type='text'] {
  flex: 2;
}
.student-row select {
  flex: 1;
}
.student-row .remove-row-btn {
  flex-shrink: 0;
}

/* Roster tables (schedules/levels steps) — a lighter variant of the admin
   table since it lives inside a card, not a full table-wrap panel. */
.roster-table {
  width: 100%;
  border-collapse: collapse;
}
.roster-table th {
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  padding: 8px 10px;
  border-bottom: 1px solid var(--color-border);
}
.roster-table td {
  padding: 10px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}
.roster-table tr:last-child td {
  border-bottom: none;
}
.day-toggle-group {
  display: flex;
  gap: 3px;
}
.day-toggle {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border-strong);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}
.day-toggle.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* Ready screen checklist */
.ready-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: var(--space-5) 0;
  text-align: left;
}
.ready-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--color-text);
}
.ready-checklist .icon {
  color: var(--color-success);
  flex-shrink: 0;
}
.ready-checklist li.skipped {
  color: var(--color-text-faint);
}
.ready-checklist li.skipped .icon {
  color: var(--color-text-faint);
}
