/* Ferrith Onboarding — sign-up wizard frame (Phase 3), on top of ob-components.css.
   The stepper (.ob-wiz*) + the card / field / input primitives (.ob-card / .ob-field / .ob-input)
   come from ob-components.css; these .wiz-* classes are the full-viewport frame chrome + the
   step-specific bits the design expressed inline. */

/* ── Frame ─────────────────────────────────────────────────────────── */
.wiz-frame { min-height: 100vh; display: flex; flex-direction: column; background: var(--ob-bg-muted, #f7f8f9); }
.wiz-topbar { height: 60px; flex-shrink: 0; display: flex; align-items: center; padding: 0 28px; background: var(--ob-bg, #fff); border-bottom: 1px solid var(--ob-border, #e5e6e8); }
.wiz-logo { height: 28px; display: block; }
.wiz-saveexit { margin-left: auto; font-size: 13px; color: var(--ob-ink-3, #8a8f97); text-decoration: none; }
.wiz-saveexit:hover { color: var(--ob-ink, #1a1d22); }
.wiz-stepper-bar { padding: 26px 28px; background: var(--ob-bg, #fff); border-bottom: 1px solid var(--ob-border, #e5e6e8); overflow-x: auto; }
.wiz-body { flex: 1; overflow-y: auto; padding: 34px 28px; }
.wiz-content { margin: 0 auto; }

/* ── WizCard (centred titled card) ─────────────────────────────────── */
.wiz-card-head { text-align: center; margin-bottom: 22px; }
.wiz-card-title { font-family: var(--font-display); font-weight: 600; font-size: 26px; letter-spacing: -0.01em; margin: 0; color: var(--ob-ink, #1a1d22); }
.wiz-card-desc { font-size: 14px; color: var(--ob-ink-2, #5a606a); line-height: 1.55; margin: 8px 0 0; }
.wiz-card-body { padding: 28px 30px; }
.wiz-card-foot { text-align: center; margin-top: 16px; font-size: 13px; color: var(--ob-ink-3, #8a8f97); }

/* Field hint (complements .ob-field / .ob-label / .ob-input from ob-components.css) */
.ob-field-hint { font-size: 11.5px; color: var(--ob-ink-3, #8a8f97); margin-top: 5px; }

/* ── Account step ──────────────────────────────────────────────────── */
.wiz-terms { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--ob-ink-2, #5a606a); margin: 4px 0 18px; line-height: 1.5; cursor: pointer; }
.wiz-terms input { margin-top: 2px; accent-color: var(--ob-accent, #FF8E46); width: 16px; height: 16px; flex-shrink: 0; }
.wiz-sso-note { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 11.5px; color: var(--ob-ink-3, #8a8f97); justify-content: center; }
.wiz-sso-note svg { width: 14px; height: 14px; }

/* ── Verify step ───────────────────────────────────────────────────── */
.wiz-verify { text-align: center; padding: 6px 0 4px; }
.wiz-mail-ic { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 999px; background: var(--ob-accent-weak, #fff0e3); color: var(--ob-accent, #FF8E46); display: flex; align-items: center; justify-content: center; }
.wiz-mail-ic svg { width: 30px; height: 30px; }
.wiz-verify-to { font-size: 14px; color: var(--ob-ink-2, #5a606a); line-height: 1.6; margin: 0 0 4px; }
.wiz-verify-email { font-size: 14px; font-weight: 600; margin: 0 0 20px; color: var(--ob-ink, #1a1d22); }
.wiz-waiting { display: flex; align-items: center; gap: 9px; justify-content: center; padding: 10px 14px; background: var(--ob-bg-muted, #f7f8f9); border: 1px solid var(--ob-border, #e5e6e8); border-radius: 8px; font-size: 13px; color: var(--ob-ink-2, #5a606a); margin-bottom: 18px; }
.wiz-waiting-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--ob-accent, #FF8E46); flex-shrink: 0; animation: wiz-pulse 1.4s ease-in-out infinite; }
.wiz-waiting-dot.ok { background: var(--ob-ok, #2f7a4f); animation: none; }
@keyframes wiz-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .wiz-waiting-dot { animation: none; } }
.wiz-resend { margin-top: 12px; font-size: 13px; color: var(--ob-ink-3, #8a8f97); }
.wiz-resend a { color: var(--ob-ink-3, #8a8f97); text-decoration: none; }
.wiz-resend a:hover { color: var(--ob-ink, #1a1d22); }
.wiz-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--ob-accent, #FF8E46); cursor: pointer; }
.wiz-linkbtn:hover:not(:disabled) { text-decoration: underline; }
.wiz-linkbtn:disabled { color: var(--ob-ink-3, #8a8f97); cursor: default; }
.wiz-resend-sep { margin: 0 8px; color: var(--ob-border, #e5e6e8); }
.wiz-note { margin-top: 14px; font-size: 13px; line-height: 1.5; }
.wiz-note.error { color: var(--ob-danger, #c8453a); }
.wiz-note.ok { color: var(--ob-ok, #2f7a4f); }

/* ── Nav row (Back / Continue) ─────────────────────────────────────── */
.wiz-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; }
.wiz-nav.end { justify-content: flex-end; }

@media (max-width: 560px) {
    .wiz-card-body { padding: 22px 18px; }
    .wiz-card-title { font-size: 22px; }
}
