/* ── Radiant account pages — shared styling ────────────────────────────────────
   Kept as a real stylesheet rather than inlined per page (as showroom-web does)
   because these pages are near-identical chrome around different forms, and two
   copies of the same CSS drift. Same palette as the Showroom so a reset link
   plainly belongs to the same product as the app that sent it. */
:root {
  --bg: #12101c;
  --bg-elev: #1b1830;
  --bg-card: #201d38;
  --line: #2e2a4a;
  --text: #f4f2fb;
  --muted: #a49fc4;
  --faint: #6f6a92;
  --accent: #f6c453;
  --accent-ink: #2a2205;
  --good: #7ee0a8;
  --bad: #ff9c9c;
  --radius: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(1200px 600px at 50% -10%, #241f42 0%, rgba(36,31,66,0) 60%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(24px, 8vh, 80px) 18px 48px;
}
.card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--faint); font-weight: 700; margin-bottom: 18px;
}
.brand .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
}
h1 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 8px; line-height: 1.25; }
p { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin: 0 0 14px; }
p.small { font-size: 13px; color: var(--faint); }
strong { color: var(--text); font-weight: 700; }

label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 16px 0 6px; }
input[type="password"], input[type="text"] {
  width: 100%; padding: 13px 15px; font-size: 16px; /* 16px: anything smaller zooms on iOS */
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 12px;
  color: var(--text); outline: none;
}
input:focus { border-color: var(--accent); }
.hint { font-size: 12.5px; color: var(--faint); margin-top: 7px; }

button {
  width: 100%; margin-top: 20px; padding: 14px 16px;
  font-size: 15.5px; font-weight: 700; font-family: inherit;
  background: var(--accent); color: var(--accent-ink);
  border: none; border-radius: 12px; cursor: pointer;
}
button:disabled { opacity: .55; cursor: default; }
button.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }

.toggle {
  background: none; border: none; color: var(--faint); font-family: inherit;
  font-size: 12.5px; font-weight: 600; padding: 0; margin: 9px 0 0; width: auto; cursor: pointer;
}
.toggle:hover { color: var(--muted); }

.msg { border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.5; margin: 16px 0 0; }
.msg.err  { background: rgba(255,156,156,.10); border: 1px solid rgba(255,156,156,.32); color: var(--bad); }
.msg.ok   { background: rgba(126,224,168,.10); border: 1px solid rgba(126,224,168,.32); color: var(--good); }
.msg:empty { display: none; }

.icon { font-size: 34px; line-height: 1; margin-bottom: 12px; }
[hidden] { display: none !important; }

/* Respect a reduced-motion preference; the spinner is decoration, not information. */
.spin {
  display: inline-block; width: 15px; height: 15px; vertical-align: -2px; margin-right: 8px;
  border: 2px solid rgba(42,34,5,.28); border-top-color: var(--accent-ink);
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }
