:root {
  --bg: #f4f5fb;
  --card: #ffffff;
  --text: #1c1d2b;
  --muted: #62657a;
  --line: #dcdeea;
  --accent: #4f46e5;
  --accent-text: #ffffff;
  --error-bg: #fdecec;
  --error: #a32020;
  --info-bg: #eaf3ff;
  --info: #174a8c;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12131c;
    --card: #1c1d2b;
    --text: #ecedf5;
    --muted: #a3a6bd;
    --line: #34364a;
    --accent: #8b85ff;
    --accent-text: #12131c;
    --error-bg: #3a1b1f;
    --error: #ffb3b3;
    --info-bg: #182a44;
    --info: #b8d4ff;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px 16px; background: var(--bg); color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.card { width: 100%; max-width: 400px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 28px 24px; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 16px; margin-bottom: 18px; }
.logo { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: var(--accent-text); font-weight: 700; }
h1 { font-size: 22px; margin: 0 0 6px; }
p { margin: 0 0 16px; }
.muted { color: var(--muted); }
label { display: block; margin: 0 0 14px; font-weight: 500; }
input[type=text], input[type=password] {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font: inherit; color: var(--text);
  background: transparent; border: 1px solid var(--line); border-radius: 8px;
}
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
button { width: 100%; padding: 11px; font: inherit; font-weight: 600; border: 0; border-radius: 8px; background: var(--accent); color: var(--accent-text); cursor: pointer; }
a { color: var(--accent); }
.links { display: flex; justify-content: space-between; margin-top: 16px; font-size: 14px; }
.error { background: var(--error-bg); color: var(--error); padding: 10px 12px; border-radius: 8px; margin-bottom: 16px; }
.info { background: var(--info-bg); color: var(--info); padding: 10px 12px; border-radius: 8px; margin-bottom: 16px; }
.foot { color: var(--muted); font-size: 13px; margin-top: 16px; text-align: center; max-width: 400px; }
