/* aaoo — account pages (account.html only: sign-up A1–A5, account B1–B3).
   Shared tokens/components come from app.css. RTL-safe: logical properties. */

/* Wider column for list-style screens (account home, help). */
.screen-body.wide { text-align: start; align-items: stretch; }

/* --- Brand lockup (A1–A3 sign-up header) — carries Ау! identity across the
   whole signup, matching the landing/A5/B1 logo treatment. -------------------- */
.brand-lock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text);
}

/* --- Payment setup loader (A3) — mask the panel and show a single spinner
   until the Stripe Payment Element fires 'ready', so the card form appears
   fully-formed in one shot instead of an empty box that pops in. ------------- */
#screen-a3.pay-loading .screen-body { opacity: 0; pointer-events: none; }
#screen-a3.pay-loading::after {
  content: "";
  position: fixed;
  inset: 0;
  margin: auto;
  width: 28px;
  height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: pay-spin 0.8s linear infinite;
}
@keyframes pay-spin { to { transform: rotate(360deg); } }

/* --- Fields ------------------------------------------------------------------ */
.field {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--no-zoom-fs);
}
.field:focus { border-color: var(--accent-strong); outline: none; }

/* --- Password reveal (Show/Hide toggle, injected by password-reveal.mjs) ------
   Wraps a .field so the toggle sits at the trailing edge; RTL-safe via logical
   properties. The input keeps room for the toggle so text never slides under it. */
.field-reveal { position: relative; display: block; width: 100%; }
.field-reveal .field { padding-inline-end: 58px; }
.reveal-toggle {
  position: absolute; inset-block: 0; inset-inline-end: 10px;
  background: none; border: none; cursor: pointer;
  color: var(--accent); font-size: 12px; font-family: var(--font-sans);
}
.reveal-toggle:hover { color: var(--accent-strong); }

.check-row {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
/* A deliberate acknowledgment tick (R1) — bigger target, top-aligned for a
   two-line label, and NOT muted: this is a decision, not fine print. */
.check-row.ack { align-items: flex-start; color: var(--text); font-size: 13px; }
.check-row.ack input { margin-top: 2px; width: 18px; height: 18px; flex: 0 0 auto; }

/* --- Advisory cards (R1 set-password warning, R4 forgot outcome) --------------
   A left-accent card carrying a headline + explanation. Colour by intent: amber
   = irreversible caution, blue = the way forward, green = reassurance. */
.advice-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-inline-start: 3px solid var(--warning);
  border-radius: var(--radius);
  padding: 14px;
  display: flex; flex-direction: column; gap: 6px;
  text-align: start;
}
.advice-card.info { border-inline-start-color: var(--accent); }
.advice-card.good { border-inline-start-color: var(--success); }
.advice-card-head { font-size: 13.5px; font-weight: 600; color: var(--text); }
.advice-card .p { font-size: 12.5px; line-height: 1.55; color: var(--muted); margin: 0; }
.green { color: var(--success); }

/* R6 code-revoked — a calm power symbol in a neutral disc, deliberately NOT an
   error colour (the line is paused, not broken). */
.revoked-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--surface); color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin: 0 auto;
}

.error-text { color: var(--danger-text); }

/* --- Progress dots (A1–A3) ------------------------------------------------------ */
.progress-dots { display: flex; gap: 8px; justify-content: center; }
/* The forgot-password recovery flow reuses the A2/A2b screens but isn't a 3-step
   signup funnel, so its borrowed step dots would mislead — hide them. */
body.recovery .progress-dots { display: none; }
.progress-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface);
}
.progress-dots .dot.active { background: var(--accent-strong); }
.progress-dots .dot.done { background: var(--success); }

/* --- Code entry (A2) --------------------------------------------------------------- */
.code-boxes { display: flex; gap: 8px; justify-content: center; }
.code-box {
  width: 44px;
  height: 52px;
  text-align: center;
  font-size: 22px;
  font-family: var(--font-mono);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
}
.code-box:focus { border-color: var(--accent-strong); outline: none; }

/* --- Payment (A3) ---------------------------------------------------------------------- */
/* Loud amber strip shown on A3 only when the edge is on test-mode Stripe keys
   (dev brain / aydev) — a dry-run must never be mistaken for a real charge. */
.test-mode-banner {
  width: 100%;
  border: 1px solid var(--warning);
  border-radius: var(--radius);
  color: var(--warning);
  background: var(--surface);
  font-size: 12px;
  line-height: 1.5;
  padding: 8px 10px;
  text-align: center;
}

.line-item { display: flex; justify-content: space-between; gap: 12px; }
.line-item.total { font-weight: 700; color: var(--text); margin-top: 6px; }
.payment-element { width: 100%; min-height: 44px; }

/* --- Account cards (B1) --------------------------------------------------------------------- */
.card-row {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.card-row-head { font-size: 12px; color: var(--muted-2); letter-spacing: 0.04em; }
.card-row-line { font-size: 14px; color: var(--text); }
.card-row-line.muted { color: var(--muted); font-size: 13px; }
.card-row .link-quiet { align-self: flex-start; padding-inline-start: 0; }

.link-quiet.small { font-size: 12px; }

/* --- Diagnostic block (B3) --------------------------------------------------------------------- */
.diag-block {
  width: 100%;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 10px;
  cursor: pointer;
  text-align: center;
}
