:root {
  color-scheme: dark;
  --bg: #0a0d11; --panel: #11161c; --panel-2: #151c24;
  --line: #232c37; --line-strong: #2e3947;
  --text: #e7ebf0; --muted: #8b97a6; --dim: #5f6b7a;
  --cyan: #4cc9e0; --cyan-soft: rgba(76,201,224,.12);
  --red: #f2685f; --green: #4ac97e;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  color: var(--text); background: var(--bg); font-size: 15px; line-height: 1.5;
  background-image: radial-gradient(900px 420px at 80% -10%, var(--cyan-soft), transparent 62%);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
.shell { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 24px; padding: 28px 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 16px; font-weight: 680; text-decoration: none; }
.mark { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; color: #092028; font-size: 25px; font-weight: 800; line-height: 1; background: linear-gradient(145deg, #6ce0dd, #4cc9e0); box-shadow: 0 0 0 4px rgba(76,201,224,.08); }
.card { width: min(100%, 410px); padding: 27px 25px 24px; border: 1px solid var(--line); border-radius: 14px; background: rgba(17,22,28,.96); box-shadow: 0 28px 80px rgba(0,0,0,.32); }
.eyebrow { margin-bottom: 8px; color: var(--cyan); font: 10px/1.2 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .14em; }
h1 { margin: 0 0 6px; font-size: 23px; letter-spacing: -.025em; }
.lead { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.form { display: grid; gap: 10px; }
label { margin-top: 3px; color: #c8d0d9; font-size: 12px; font-weight: 590; }
input { width: 100%; padding: 10px 11px; border: 1px solid var(--line-strong); border-radius: 9px; outline: none; color: var(--text); background: #0d1219; font: inherit; }
input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-soft); }
button { min-height: 39px; border-radius: 9px; font: inherit; font-size: 13px; cursor: pointer; }
button:disabled { opacity: .58; cursor: wait; }
.primary { margin-top: 7px; border: 1px solid var(--cyan); color: #04222a; background: var(--cyan); font-weight: 680; }
.primary:hover { filter: brightness(1.06); }
.subtle, .links button { border: 0; color: var(--cyan); background: transparent; }
.subtle { justify-self: center; margin-top: 0; }
.links { display: flex; justify-content: space-between; gap: 12px; margin-top: 2px; }
.links button { padding: 3px 0; font-size: 12px; }
.notice { margin: 0 0 16px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 9px; color: var(--muted); background: var(--panel-2); font-size: 12.5px; }
.notice.error { border-color: rgba(242,104,95,.42); color: #ff9189; background: rgba(242,104,95,.08); }
.notice.success { border-color: rgba(74,201,126,.38); color: #78dfa0; background: rgba(74,201,126,.08); }
.hint { margin: -4px 0 1px; color: var(--dim); font-size: 11px; }
.signed-in { margin: 0 0 18px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.signed-in strong { color: var(--text); font-weight: 620; }
h2 { margin: 0 0 5px; font-size: 15px; }
.signout { width: 100%; margin-top: 18px; border: 1px solid var(--line-strong); color: var(--muted); background: transparent; }
.signout:hover { border-color: var(--red); color: #ff9189; }
footer { display: flex; gap: 10px; align-items: center; color: var(--dim); font-size: 11px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--cyan); }
@media (max-width: 460px) { .shell { align-content: center; gap: 18px; padding-inline: 13px; } .card { padding: 23px 18px 20px; } }
