:root {
  --bg: #07070a;
  --surface: #0d0d12;
  --surface2: #13131a;
  --line: #1d1d27;
  --line2: #2a2a37;
  --text: #ecebf3;
  --muted: #8a899c;
  --faint: #5a596b;
  --accent: #8b5cf6;
  --accent-soft: rgba(139, 92, 246, 0.16);
  --danger: #f0616d;
  --ok: #4ade80;
  --c: var(--accent);
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent-soft); }

.mono, .label { font-family: var(--mono); }
.label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.small { font-size: 12px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.hidden { display: none !important; }

button {
  background: var(--accent); border: 0; border-radius: 8px; padding: 9px 16px; cursor: pointer;
  color: #fff; font-weight: 550; transition: filter .15s, background .15s, opacity .15s;
}
button:hover { filter: brightness(1.1); }
button:disabled { opacity: .5; cursor: default; }
button.quiet { background: transparent; color: var(--muted); border: 1px solid var(--line2); font-weight: 450; }
button.quiet:hover { color: var(--text); border-color: var(--faint); }
button.danger { background: transparent; color: var(--danger); border: 1px solid rgba(240, 97, 109, .35); }
button.danger:hover { background: rgba(240, 97, 109, .1); }
button.link { background: none; padding: 0; color: var(--muted); font-weight: 400; }
button.link:hover { color: var(--text); }

input, select, textarea {
  width: 100%; background: var(--surface2); border: 1px solid var(--line2); border-radius: 8px;
  padding: 9px 11px; outline: none; transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
textarea { min-height: 160px; resize: vertical; line-height: 1.55; }
label { display: block; margin-bottom: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field { margin: 14px 0; }
.error { color: var(--danger); min-height: 1.4em; margin: 10px 0 0; font-size: 14px; }

/* Page */
.signin { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.signin .card { width: 100%; max-width: 360px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.signin h1 { font-size: 20px; font-weight: 600; margin: 0 0 10px; }
.signin button[type=submit] { width: 100%; margin-top: 6px; }
.enroll { text-align: center; margin: 8px 0 4px; }
.enroll img { background: #fff; border-radius: 10px; padding: 8px; margin: 8px auto; display: block; }

