:root {
  --bg: #f5f6f8; --surface: #ffffff; --text: #16181d; --muted: #646b78; --border: #dfe2e8;
  --accent: #2456d6; --accent-text: #ffffff; --error-bg: #fdecec; --error: #a4161a; --warn-bg: #fff4e0; --warn: #8a4b00;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115; --surface: #181b21; --text: #e8eaee; --muted: #9aa1ad; --border: #2a2f38;
    --accent: #5b86f0; --accent-text: #0f1115; --error-bg: #3a1517; --error: #ff9a9e; --warn-bg: #3a2a10; --warn: #ffc56b;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.brand { font-weight: 600; letter-spacing: .02em; display: flex; align-items: center; gap: .5rem; }
.brand-mark { color: var(--accent); }
h1 { font-size: 1.35rem; margin: 0 0 1rem; }
.muted { color: var(--muted); }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-card { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; }
.login-card .brand { margin-bottom: 1.5rem; }
label { display: block; font-size: .85rem; color: var(--muted); margin: .9rem 0 .35rem; }
input { width: 100%; padding: .65rem .75rem; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; }
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
button { font: inherit; cursor: pointer; }
button[type=submit] { width: 100%; margin-top: 1.4rem; padding: .7rem; border: 0; border-radius: 8px; background: var(--accent); color: var(--accent-text); font-weight: 600; }
button:disabled { opacity: .6; cursor: default; }
.msg { margin-top: 1rem; padding: .6rem .75rem; border-radius: 8px; font-size: .9rem; }
.msg.error { background: var(--error-bg); color: var(--error); }
.msg.warn { background: var(--warn-bg); color: var(--warn); font-weight: 600; }

.topbar { display: flex; justify-content: space-between; align-items: center; padding: .8rem 16px; background: var(--surface); border-bottom: 1px solid var(--border); }
.who { display: flex; gap: 1rem; align-items: center; color: var(--muted); font-size: .9rem; }
.link { background: none; border: 0; color: var(--accent); padding: 0; }
.content { max-width: 1200px; margin: 0 auto; padding: 1.5rem 16px; }
