/* Sign-in pages: dark theme per SPEC §8.3; no external fonts. */
:root {
  color-scheme: dark;
  --bg: #0f1218;
  --card: #171b23;
  --field: #0f1218;
  --line: #2a303c;
  --text: #e6e9ef;
  --muted: #9aa3b2;
  --accent: #5b8def;
  --error: #ff8a80;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: radial-gradient(ellipse at top right, #13203a, var(--bg) 60%);
  color: var(--text);
}
.card {
  width: 100%;
  max-width: 26rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 2rem;
}
.brand { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 1.5rem; }
.logo {
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem;
  border-radius: 0.6rem; background: linear-gradient(135deg, #3aa0e8, #5b8def);
  font-size: 1.3rem; font-weight: 700; color: #fff;
}
.name { margin: 0; font-weight: 700; font-size: 1.15rem; }
.sub { margin: 0; color: var(--muted); font-size: 0.8rem; }
h1 { font-size: 1.3rem; margin: 0 0 0.25rem; }
.lead { color: var(--muted); margin: 0 0 1.25rem; font-size: 0.9rem; line-height: 1.45; }
.stack { display: flex; flex-direction: column; gap: 0.4rem; }
label { color: var(--muted); font-size: 0.85rem; margin-top: 0.5rem; }
input {
  font: inherit; color: var(--text); background: var(--field);
  border: 1px solid var(--line); border-radius: 0.5rem; padding: 0.7rem 0.8rem;
}
input:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
button, .button {
  font: inherit; cursor: pointer; margin-top: 1rem; padding: 0.75rem;
  border-radius: 0.5rem; border: 1px solid var(--line); background: #222836;
  color: var(--text); text-align: center; text-decoration: none; display: block;
}
.primary { background: var(--accent); border-color: var(--accent); color: #0b1020; font-weight: 600; }
.error { color: var(--error); background: #2a1515; border-radius: 0.5rem; padding: 0.6rem 0.8rem; font-size: 0.9rem; }
.hint { color: var(--muted); font-size: 0.8rem; margin-top: 1.25rem; line-height: 1.5; }
.footer { color: var(--muted); font-size: 0.75rem; margin-top: 1rem; text-align: center; }
a { color: #9db8ff; }
.qr { display: block; margin: 0.5rem auto 1rem; background: #fff; border-radius: 0.5rem; }
.secret { font-size: 0.85rem; color: var(--muted); word-break: break-all; }
code { color: var(--text); font-size: 0.95rem; letter-spacing: 0.05em; }
.codes { columns: 2; padding-left: 1.5rem; line-height: 2; }
.recovery { margin-top: 1rem; color: var(--muted); font-size: 0.9rem; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.error-text { color: var(--error); font-size: 0.85rem; min-height: 1em; }
button[hidden] { display: none; }
.field-hint { color: var(--muted); font-size: 0.8rem; margin: 0; }
