:root {
  color-scheme: dark;
  --bg: #0b0b0c;
  --panel: #141415;
  --panel-2: #1a1a1c;
  --line: #2a2a2e;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --accent: #e8e4dc;
  --on-accent: #0a0a0a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--line);
}
.brand { font-weight: 650; letter-spacing: -0.01em; }
.actions { display: flex; align-items: center; gap: 12px; }
.muted { color: var(--muted); font-size: 13px; }
button {
  font: inherit; cursor: pointer; color: var(--text);
  border: 1px solid var(--line); background: var(--panel);
  border-radius: 10px; padding: 8px 14px;
}
button.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 600; }
button.link { border: 0; background: transparent; color: var(--muted); padding: 0; text-decoration: underline; }
main { padding: 24px 20px; max-width: 720px; margin: 0 auto; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
h1 { margin: 0; font-size: 20px; }
.cards { display: flex; flex-direction: column; gap: 8px; }
.card { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.error { color: #d97777; min-height: 20px; margin: 12px 0 0; }
.auth { display: grid; place-items: center; padding: 24px; }
.gate { width: min(100%, 380px); background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.gate .brand { margin-bottom: 22px; }
.gate h1 { margin-bottom: 18px; }
form { display: grid; gap: 12px; }
label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
input {
  height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--bg); color: var(--text); font: inherit;
}
input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.gate .link { margin-top: 14px; width: 100%; text-align: center; }
