/* ═══════════════════════════════════════════════
   DAARA — Auth & Onboarding Styles
   ═══════════════════════════════════════════════ */

/* ─── Auth page layout ─── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(160deg, var(--warm-white) 0%, var(--sand) 100%);
  position: relative;
  overflow: hidden;
}

/* Thread SVG accent */
.auth-thread {
  position: absolute;
  left: 2rem;
  top: 0;
  bottom: 0;
  width: 60px;
  opacity: 0.4;
  pointer-events: none;
}
.auth-thread svg { width: 100%; height: 100%; }

@keyframes drawThread {
  to { stroke-dashoffset: 0; }
}

/* ─── Auth card ─── */
.auth-card {
  background: white;
  border-radius: var(--radius);
  padding: 2.5rem 2.2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-hover);
  position: relative;
}
/* Thread top accent */
.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--thread), var(--terracotta), var(--gold));
  border-radius: var(--radius) var(--radius) 0 0;
}

/* ─── Brand in auth ─── */
.auth-brand {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  text-decoration: none;
  margin-bottom: 1.8rem;
  justify-content: center;
}
.auth-wordmark {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--terracotta);
  letter-spacing: 0.04em;
}
.auth-script {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--slate);
}

/* ─── Tab switcher ─── */
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.8rem;
  border-bottom: 1px solid var(--sand);
}
.auth-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 0.65rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--slate);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  margin-bottom: -1px;
}
.auth-tab.active {
  color: var(--terracotta);
  border-bottom-color: var(--terracotta);
}
.auth-tab:hover:not(.active) { color: var(--deep-slate); }

/* ─── Auth form ─── */
.auth-submit {
  width: 100%;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}
.auth-error {
  color: var(--rust);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}
.auth-footnote {
  font-size: 0.78rem;
  color: var(--slate);
  line-height: 1.6;
  text-align: center;
}
.auth-footnote a { color: var(--terracotta); text-decoration: underline; }

/* ─── Verify message ─── */
.auth-verify {
  text-align: center;
  padding: 1rem 0;
}
.verify-icon { font-size: 2.5rem; margin-bottom: 0.8rem; }
.auth-verify h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--deep-slate);
  margin-bottom: 0.8rem;
}
.auth-verify p { font-size: 0.92rem; color: var(--slate); line-height: 1.65; }

/* ─── Onboarding page ─── */
.onboarding-page {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--warm-white) 0%, var(--sand) 100%);
  padding: 2rem 1.5rem 4rem;
}
.onboarding-wrap {
  max-width: 560px;
  margin: 0 auto;
}

/* Progress bar */
.onboarding-progress {
  margin-bottom: 2rem;
}
.progress-bar-track {
  height: 3px;
  background: var(--sand);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.4rem;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(to right, var(--thread), var(--terracotta));
  border-radius: 3px;
  transition: width 0.4s ease;
  width: 0%;
}
#progress-bar { /* alias */ }
.progress-text {
  font-size: 0.78rem;
  color: var(--slate);
  text-align: right;
}

/* Step card */
.onboarding-card {
  background: white;
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.onboarding-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--thread), var(--terracotta));
  border-radius: var(--radius) var(--radius) 0 0;
}

.onboarding-step { }
.onboarding-step.hidden { display: none; }

.step-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.step-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--deep-slate);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}
.step-desc {
  font-size: 0.9rem;
  color: var(--slate);
  line-height: 1.65;
  margin-bottom: 1.6rem;
}

/* Option buttons (status, role) */
.option-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}
.status-option,
.role-option {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.1rem;
  border: 1.5px solid var(--sand);
  border-radius: var(--radius-sm);
  background: white;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--deep-slate);
  text-align: left;
  transition: var(--transition);
  font-weight: 400;
}
.status-option:hover,
.role-option:hover { border-color: var(--terracotta); background: var(--warm-white); }
.status-option.selected,
.role-option.selected {
  border-color: var(--terracotta);
  background: rgba(196,114,74,0.06);
  color: var(--rust);
  font-weight: 500;
}
.option-icon { font-size: 1.3rem; flex-shrink: 0; }
.option-desc {
  font-size: 0.8rem;
  color: var(--slate);
  margin-top: 0.15rem;
  font-weight: 400;
}

/* Step navigation */
.step-nav {
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.6rem;
}
.step-nav .btn-ghost { font-size: 0.88rem; }

/* Opt-in toggle */
.opt-in-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  background: var(--warm-white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--sand);
  margin-bottom: 1rem;
  cursor: pointer;
}
.opt-in-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--terracotta);
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.opt-in-text { font-size: 0.9rem; color: var(--deep-slate); line-height: 1.55; }
.opt-in-text small { display: block; color: var(--slate); font-size: 0.8rem; margin-top: 0.2rem; }

/* Multiples note */
.multiples-note {
  font-size: 0.82rem;
  color: var(--slate);
  font-style: italic;
  margin-top: 0.4rem;
  line-height: 1.55;
}

@media (max-width: 480px) {
  .auth-card { padding: 2rem 1.5rem; }
  .onboarding-card { padding: 1.8rem 1.4rem; }
}
