:root { --bg: #f6f7f9; --card: #fff; --ink: #1d2330; --muted: #5d6677; --btn: #1d4ed8; --btn-ink: #fff; --err: #b42318; }
@media (prefers-color-scheme: dark) { :root { --bg: #0f1218; --card: #181c24; --ink: #e8ebf1; --muted: #9aa3b2; --btn: #3b82f6; --err: #f97066; } }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.5 system-ui, -apple-system, "Segoe UI", "Noto Sans Thai", sans-serif; }
.wrap { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.card { width: 100%; max-width: 360px; background: var(--card); border-radius: 16px; padding: 28px 22px; text-align: center; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
h1 { font-size: 1.3rem; margin: 0 0 20px; }
.btn { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 18px; border-radius: 12px; background: var(--btn); color: var(--btn-ink); text-decoration: none; font-weight: 600; }
.btn:focus-visible { outline: 3px solid var(--muted); outline-offset: 2px; }
.err { color: var(--err); margin: 0 0 16px; }
