/* AmeriGo sign-in. Colours from AmeriGO_Web (src/app/globals.css, --cx-*). */
:root {
  --navy: #0a1f44; --blue: #1f55e0; --brand: #c8102e; --ink: #2b303a; --muted: #5e6782;
  --line: rgba(10, 31, 68, 0.12); --tint: rgba(10, 31, 68, 0.05); --bg: #f4f6fb; --card: #fff;
  --red-bg: #fbe9ec; --glass: rgba(255, 255, 255, 0.6);
}
@media (prefers-color-scheme: dark) {
  :root { --navy: #dce4f7; --blue: #8fb0ff; --ink: #e6e9f2; --muted: #a3acc4; --line: #2b3345;
    --tint: rgba(255,255,255,0.07); --bg: #0d1424; --card: #151d30; --red-bg: #3a1820; --glass: rgba(15, 23, 42, 0.6); }
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; align-items: center;
  background-color: var(--bg); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* AmeriGO_Web's sign-in backdrop (src/features/auth/components/AuthLayout.tsx). */
  background-image:
    radial-gradient(36% 48% at 18% 76%, rgba(200,16,46,.14) 0%, rgba(255,106,77,.22) 22%, rgba(245,181,63,.13) 45%, rgba(246,166,193,.09) 68%, transparent 100%),
    radial-gradient(32% 42% at 82% 24%, rgba(31,85,224,.20) 0%, rgba(76,141,255,.12) 40%, rgba(170,196,255,.06) 70%, transparent 100%);
  background-attachment: fixed; }
.card { width: 100%; max-width: 420px; margin: 48px 16px 16px; padding: 32px 28px; background: var(--glass);
  border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 10px 40px rgba(7, 26, 79, 0.08);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.brand { display: flex; justify-content: center; margin: 0 0 20px; }
.brand img { width: 166px; height: auto; }
h1 { margin: 0 0 8px; font-size: 1.5rem; color: var(--navy); }
.lead { margin: 0 0 20px; color: var(--muted); overflow-wrap: anywhere; }
.note, .hint { color: var(--muted); font-size: 0.875rem; }
.stack { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.9rem; }
input { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }
input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
button, .social { font: inherit; font-weight: 600; padding: 12px 16px; border-radius: 10px; cursor: pointer; text-align: center; text-decoration: none; }
.primary { background: var(--navy); color: var(--card); border: 0; }
.secondary, .social { background: transparent; color: var(--navy); border: 1px solid var(--line); width: 100%; }
.secondary:hover, .social:hover { background: var(--tint); }
.link { display: inline-block; margin-top: 8px; background: none; border: 0; padding: 0; color: var(--blue); font-weight: 500; cursor: pointer; text-decoration: none; }
form + .link, .link + .link { margin-right: 16px; }
.error { background: var(--red-bg); color: var(--brand); padding: 10px 12px; border-radius: 10px; }
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 12px; color: var(--muted); font-size: 0.85rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
footer { margin: 8px 16px 32px; font-size: 0.8rem; color: var(--muted); }
footer a { color: inherit; }
.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.check input { width: 18px; height: 18px; }
.qr { text-align: center; }
.qr img { background: #fff; padding: 8px; border-radius: 8px; }
code { font: 0.95rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.codes { columns: 2; padding-left: 20px; }
details { margin: 12px 0; }
summary { display: inline-block; }
section { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 20px; }
h2 { font-size: 1.05rem; color: var(--navy); margin: 0 0 12px; }
.rows { list-style: none; padding: 0; margin: 0 0 12px; }
.rows li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.rows.small li { font-size: 0.85rem; color: var(--muted); }
form.inline { display: inline; margin: 0; }
.danger { background: var(--brand); color: #fff; border: 0; }
.note { background: var(--tint); padding: 10px 12px; border-radius: 10px; }
