:root { color-scheme: light dark; --bg: #f3f4f6; --card: #fff; --text: #111827; --muted: #4b5563; --line: #d1d5db; --brand: #1d4ed8; --brand-text: #fff; --error: #b91c1c; }
@media (prefers-color-scheme: dark) { :root { --bg: #0f172a; --card: #1e293b; --text: #f1f5f9; --muted: #cbd5e1; --line: #475569; --brand: #3b82f6; --error: #fca5a5; } }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--bg); color: var(--text); font: 16px/1.7 -apple-system, "Segoe UI", "PingFang TC", "Microsoft JhengHei", sans-serif; }
.card { width: 100%; max-width: 420px; padding: 32px 28px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
h1 { margin: 0 0 4px; font-size: 24px; }
h2 { margin: 0 0 8px; font-size: 18px; }
h2.gap { margin-top: 24px; }
.lead { margin: 0 0 24px; color: var(--muted); }
label { display: block; margin: 12px 0 6px; font-weight: 600; }
input { width: 100%; padding: 12px; font: inherit; color: inherit; background: transparent; border: 1px solid var(--line); border-radius: 8px; }
button { width: 100%; margin-top: 16px; padding: 12px; font: inherit; font-weight: 600; color: var(--brand-text); background: var(--brand); border: 0; border-radius: 8px; cursor: pointer; }
button.secondary { color: var(--text); background: transparent; border: 1px solid var(--line); }
button.link { width: auto; padding: 4px 0; color: var(--brand); background: transparent; font-weight: 400; text-decoration: underline; }
button:disabled { opacity: .6; cursor: default; }
input:focus-visible, button:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); font-size: 14px; }
.error { margin: 12px 0 0; color: var(--error); font-size: 14px; }
[hidden] { display: none !important; }
