:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  --auth-canvas: #f8fafc;
  --auth-surface: #ffffff;
  --auth-foreground: #0f172a;
  --auth-muted: #64748b;
  --auth-border: #e2e8f0;
  --auth-input-border: #cbd5e1;
  --auth-primary: #256abf;
  --auth-button: #0f172a;
  --auth-button-hover: #1e293b;
  --auth-error: #dc2626;
  color: var(--auth-foreground);
  background: var(--auth-canvas);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --auth-canvas: #0b0d10;
  --auth-surface: #12171d;
  --auth-foreground: #f4f7fa;
  --auth-muted: #9aa6b2;
  --auth-border: #2b3540;
  --auth-input-border: #3a4653;
  --auth-primary: #5ea3f7;
  --auth-button: #256abf;
  --auth-button-hover: #347ccf;
  --auth-error: #f26969;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}
button,
input {
  font: inherit;
}
.auth-shell {
  min-height: 100vh;
  padding: 24px;
  display: grid;
  place-items: center;
}
.auth-card {
  width: min(100%, 390px);
  padding: 30px;
  border: 1px solid var(--auth-border);
  border-radius: 12px;
  background: var(--auth-surface);
  box-shadow: 0 18px 50px rgb(15 23 42 / 8%);
}
.auth-heading h1 {
  margin: 0;
  font-size: 24px;
  line-height: 32px;
}
.auth-note {
  color: var(--auth-muted);
  font-size: 13px;
  line-height: 20px;
}
form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
label {
  font-size: 12px;
  font-weight: 600;
}
input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--auth-input-border);
  border-radius: 7px;
  outline: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-align: center;
}
input:focus {
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 3px rgb(37 106 191 / 12%);
}
button {
  height: 42px;
  margin-top: 6px;
  border: 0;
  border-radius: 7px;
  background: var(--auth-button);
  color: white;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
button:hover {
  background: var(--auth-button-hover);
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
.auth-error {
  margin: 0;
  color: var(--auth-error);
  font-size: 12px;
}
.auth-note {
  margin: 18px 0 0;
  text-align: center;
}
@media (max-width: 480px) {
  .auth-shell {
    padding: 14px;
  }
  .auth-card {
    padding: 24px 20px;
  }
}
