:root { color-scheme: light dark; --ink: #16202a; --muted: #5b6875; --line: #d5dbe1; --bg: #f5f7f9; --card: #fff; --accent: #1f5fbf; }
@media (prefers-color-scheme: dark) {
  :root { --ink: #e8edf2; --muted: #9aa7b4; --line: #33404d; --bg: #11181f; --card: #1a232c; --accent: #7fb0ff; }
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); }
main { max-width: 26rem; margin: 8vh auto; padding: 2rem 1.5rem; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
h1 { font-size: 1.25rem; margin: 0 0 1rem; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); font-size: 0.9rem; }
.error { color: #b3261e; }
label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
input[type=email], input[type=text] { width: 100%; padding: 0.6rem 0.7rem; font: inherit; color: inherit; background: transparent; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 1rem; }
button { width: 100%; padding: 0.65rem 1rem; font: inherit; font-weight: 600; color: #fff; background: #1f5fbf; border: 0; border-radius: 6px; cursor: pointer; }
button.secondary { color: var(--ink); background: transparent; border: 1px solid var(--line); margin-top: 0.75rem; }
.brand { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.5rem; }
/* No padding here: it would crop the code. The white margin a scanner needs is part of the image itself. */
.qr { display: block; box-sizing: content-box; margin: 0 auto 1rem; background: #fff; border-radius: 6px; max-width: 100%; height: auto; }
code { font: 0.95rem ui-monospace, Consolas, monospace; word-break: break-all; }
ul.codes { list-style: none; padding: 0; columns: 2; margin: 0 0 1rem; }
[hidden] { display: none; }
