/* ============================================================
   AUTH — login, signup (multi-step), and shared auth styles
   ============================================================ */

/* ── Wrapper ────────────────────────────────────────────────── */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: linear-gradient(140deg, #0f766e 0%, #0891b2 100%);
  padding: 32px 16px;
}

/* ── Card ───────────────────────────────────────────────────── */
.auth-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 36px 32px;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-lg);
  animation: card-in .35s ease;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Auth header ────────────────────────────────────────────── */
.auth-head { text-align: center; margin-bottom: 24px; }

.auth-logo {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--teal-bg); border: 2px solid var(--teal);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 12px;
}
.auth-logo svg { width: 32px; height: 32px; fill: var(--teal); }
.auth-title    { font-size: 22px; font-weight: 800; color: var(--teal); letter-spacing: -.4px; }
.auth-subtitle { font-size: 13px; color: var(--ink-soft); margin-top: 5px; }

/* ── Input with icon ────────────────────────────────────────── */
.field-wrap {
  position: relative; display: flex; align-items: center;
}
.field-icon {
  position: absolute; left: 11px; width: 17px; height: 17px;
  color: var(--ink-soft); pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
.field-icon svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; }
.field-wrap .form-control { padding-left: 38px; }

/* ── Password toggle ────────────────────────────────────────── */
.pw-toggle {
  position: absolute; right: 11px; background: none; border: none;
  cursor: pointer; color: var(--ink-soft); display: flex; align-items: center; padding: 0;
}
.pw-toggle:hover { color: var(--ink); }
.pw-toggle svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ── Message banner ─────────────────────────────────────────── */
.auth-msg {
  padding: 10px 14px; border-radius: var(--r-sm); font-size: 13px;
  font-weight: 500; margin-bottom: 16px; display: none;
}
.auth-msg.error   { background: var(--red-soft); color: var(--red); border: 1px solid var(--red-border); display: block; }
.auth-msg.success { background: #f0fdf4; color: #16a34a; border: 1px solid #86efac; display: block; }

/* ── Forgot / bottom links ──────────────────────────────────── */
.forgot-row { text-align: right; margin: -4px 0 18px; }
.forgot-row a { font-size: 12px; color: var(--teal); text-decoration: none; cursor: pointer; }
.forgot-row a:hover { text-decoration: underline; }

.auth-footer { text-align: center; margin-top: 18px; font-size: 13px; color: var(--ink-soft); }
.auth-footer a { color: var(--teal); font-weight: 600; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

.back-link { text-align: center; margin-top: 14px; }
.back-link a { font-size: 12px; color: rgba(255,255,255,.75); text-decoration: none; }
.back-link a:hover { color: white; }

/* ═══════════════════════════════════════════════════════════════
   MULTI-STEP SIGNUP
   ═══════════════════════════════════════════════════════════════ */

/* ── Step progress bar ──────────────────────────────────────── */
.step-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  gap: 0;
}

.step-dot {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--border); background: var(--surface);
  color: var(--ink-soft); font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: var(--ease); z-index: 1;
}
.step-dot.active { border-color: var(--teal); background: var(--teal); color: white; }
.step-dot.done   { border-color: var(--teal); background: var(--teal-bg); color: var(--teal); }

.step-line {
  height: 2px; width: 44px; background: var(--border);
  flex-shrink: 0; transition: var(--ease);
}
.step-line.done { background: var(--teal); }

/* ── Step container ─────────────────────────────────────────── */
.signup-step { display: none; }
.signup-step.active { display: block; }

.step-head { margin-bottom: 18px; }
.step-head h3 { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.step-head p  { font-size: 13px; color: var(--ink-soft); }

/* ── Plan option cards (step 1) ─────────────────────────────── */
.plan-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }

.plan-option {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border: 2px solid var(--border); border-radius: var(--r);
  cursor: pointer; transition: var(--ease); background: var(--surface);
  user-select: none;
}
.plan-option:hover   { border-color: var(--teal); background: var(--teal-bg); }
.plan-option.selected{ border-color: var(--teal); background: var(--teal-bg); }

.plan-option-icon {
  width: 42px; height: 42px; border-radius: var(--r-sm);
  background: var(--surface-2); display: flex; align-items: center;
  justify-content: center; font-size: 22px; flex-shrink: 0;
}
.plan-option.selected .plan-option-icon { background: white; }

.plan-option-meta { flex: 1; min-width: 0; }
.plan-option-name  { font-size: 14px; font-weight: 700; color: var(--ink); }
.plan-option-price { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.plan-option-verify{ font-size: 11px; color: var(--teal); font-weight: 600; margin-top: 3px; }

.plan-radio {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; transition: var(--ease);
}
.plan-option.selected .plan-radio { border-color: var(--teal); background: var(--teal); }
.plan-option.selected .plan-radio::after {
  content: ''; width: 6px; height: 6px; background: white; border-radius: 50%;
}

/* ── Verification note ──────────────────────────────────────── */
.verify-note {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 13px; background: #fffbeb; border: 1px solid #fde047;
  border-radius: var(--r-sm); font-size: 12px; color: #854d0e;
  margin-bottom: 16px; line-height: 1.5;
}
.verify-note svg {
  width: 15px; height: 15px; stroke: #ca8a04; fill: none;
  stroke-width: 2; flex-shrink: 0; margin-top: 1px;
}

/* ── Step navigation buttons ─────────────────────────────────── */
.step-nav { display: flex; gap: 10px; margin-top: 20px; }
.step-nav .btn { flex: 1; }

/* ── Step 4: trial summary ──────────────────────────────────── */
.trial-summary {
  background: var(--teal-bg); border: 1.5px solid rgba(13,148,136,.2);
  border-radius: var(--r); padding: 20px; margin-bottom: 20px;
}
.trial-summary-plan {
  font-size: 16px; font-weight: 800; color: var(--teal); margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.trial-summary-plan .plan-chip {
  font-size: 10px; background: var(--teal); color: white;
  padding: 2px 8px; border-radius: 20px; font-weight: 700;
}

.trial-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; font-size: 13px; border-bottom: 1px solid rgba(13,148,136,.12);
}
.trial-row:last-child { border-bottom: none; padding-bottom: 0; }
.trial-row span:first-child { color: var(--ink-soft); }
.trial-row span:last-child  { font-weight: 600; color: var(--ink); }
.trial-row .accent { color: var(--teal); font-weight: 700; }

.trial-fine-print {
  font-size: 11px; color: var(--ink-soft); text-align: center;
  margin-top: 12px; line-height: 1.5;
}

/* ── Form hint text ─────────────────────────────────────────── */
.form-hint {
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 2px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 480px) {
  .auth-card    { padding: 28px 20px; }
  .step-line    { width: 28px; }
}
