:root { --bg:#15130f; --dot:#24211b; --surface:#1d1a15; --line:#322d25; --text:#ece6da; --muted:#9a9182; --accent:#e2884f; --err:#e07a6a; color-scheme: dark; }
:root[data-theme="light"] { --bg:#f3f0e9; --dot:#e2ddd2; --surface:#fbfaf6; --line:#e1dacd; --text:#29241c; --muted:#6b6355; --accent:#c8642a; --err:#b8473a; color-scheme: light; }
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg); background-image: radial-gradient(var(--dot) 1px, transparent 1px); background-size: 22px 22px;
  color: var(--text); font: 14px/1.5 "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  display: grid; place-items: center; padding: 16px;
}
.box { width: min(340px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 28px 24px 18px; display: flex; flex-direction: column; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .08em; font-size: 16px; margin-bottom: 10px; }
.brand-mark { width: 10px; height: 18px; border-radius: 3px; background: var(--accent); }
label { color: var(--muted); font-size: 12.5px; }
input { background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; font: inherit; outline: none; }
input:focus { border-color: var(--accent); }
button { margin-top: 6px; background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 9px; font: inherit; font-weight: 600; cursor: pointer; }
button:disabled { opacity: .6; cursor: default; }
.err { min-height: 1.5em; margin: 0; color: var(--err); font-size: 12.5px; }
