:root { --bg: #f5f4f0; --panel: #fff; --line: #e4e1d9; --text: #1f2421; --muted: #6b716c; --accent: #2f6f5e; --accent-soft: #e3efe9; --danger: #b3432f; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #161917; --panel: #1f2320; --line: #333a35; --text: #e8ebe8; --muted: #9aa39d; --accent: #6fbfa5; --accent-soft: #23372f; --danger: #e5826f; }
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg); color: var(--text); font: 16px/1.5 "Segoe UI", system-ui, -apple-system, sans-serif;
  display: grid; place-items: center; min-height: 100vh; padding: 16px;
}
.box { width: 100%; max-width: 360px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 28px 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 20px; margin-bottom: 6px; }
p { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); font-weight: 500; }
input {
  font: inherit; color: inherit; background: var(--panel); border: 1px solid var(--line); border-radius: 9px;
  padding: 11px 12px; width: 100%; outline: none;
}
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
button {
  margin-top: 16px; width: 100%; font: inherit; font-weight: 600; border: 0; border-radius: 9px; padding: 12px;
  background: var(--accent); color: #fff; cursor: pointer;
}
@media (prefers-color-scheme: dark) { button { color: #10201a; } }
button:disabled { opacity: .6; cursor: default; }
.err { color: var(--danger); font-size: 14px; min-height: 21px; margin-top: 10px; }
