:root {
  color-scheme: light dark;
  --bg: #f6f7f9; --panel: #ffffff; --line: #dde1e7; --line-strong: #b9c1cc;
  --text: #1c2128; --muted: #5d6673; --accent: #e8452c;
  --error-bg: #fdecec; --error-line: #e8a3a3; --error-text: #a3262d;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1216; --panel: #171b21; --line: #2b323c; --line-strong: #46505d;
    --text: #e8ecf1; --muted: #9aa4b1;
    --error-bg: #3a1618; --error-line: #7a2c30; --error-text: #ff9da1;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100dvh; display: grid; place-items: center; padding: 16px;
  background: var(--bg); color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
}
.card { width: 100%; max-width: 360px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.logo { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1 { font-size: 18px; font-weight: 700; margin: 0; line-height: 1.2; }
.sub { margin: 0; color: var(--muted); font-size: 13px; }
form { display: flex; flex-direction: column; }
label { font-size: 13px; font-weight: 600; color: var(--muted); margin: 10px 0 4px; }
input {
  font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: 8px; padding: 9px 11px;
}
input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
button {
  margin-top: 18px; font: inherit; font-weight: 600; cursor: pointer;
  background: var(--text); color: var(--bg); border: 0; border-radius: 8px; padding: 10px;
}
button:hover { opacity: .9; }
.error {
  margin: 0 0 6px; padding: 9px 11px; border-radius: 8px; font-size: 14px;
  background: var(--error-bg); color: var(--error-text); border: 1px solid var(--error-line);
}
