:root {
  color-scheme: dark;
  --bg: #070b12;
  --surface: #111925;
  --line: #29374a;
  --text: #f3f7fb;
  --muted: #92a3b8;
  --accent: #44e08d;
  --danger: #ff8b91;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 80% -10%, rgba(29, 99, 142, .27), transparent 35rem),
    radial-gradient(circle at -10% 110%, rgba(37, 126, 81, .18), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-shell { width: min(440px, 100%); }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
  color: inherit;
  text-decoration: none;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(68, 224, 141, .65);
  border-radius: 12px;
  background: rgba(68, 224, 141, .11);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 12px; }

.auth-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(21, 31, 45, .98), rgba(12, 18, 27, .98));
  box-shadow: 0 22px 60px rgba(0, 0, 0, .38);
}
.eyebrow { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
h1 { margin: 7px 0 0; font-size: 26px; }
.intro { margin: 10px 0 24px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.alert, .required-note {
  margin: 0 0 18px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 139, 145, .32);
  border-radius: 9px;
  background: rgba(255, 107, 114, .08);
  color: #ffc2c5;
  font-size: 12px;
  line-height: 1.5;
}
.required-note { border-color: rgba(245, 184, 75, .35); background: rgba(245, 184, 75, .08); color: #ffd78e; }
label { display: block; margin: 15px 0; color: #dce6f0; font-size: 12px; font-weight: 700; }
input {
  width: 100%;
  min-height: 44px;
  margin-top: 7px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
  background: #080d14;
  color: var(--text);
  font: inherit;
}
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(68, 224, 141, .12); }
button {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  border: 1px solid rgba(68, 224, 141, .4);
  border-radius: 9px;
  background: rgba(68, 224, 141, .13);
  color: #d2fbe5;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}
button:hover { background: rgba(68, 224, 141, .2); }
.hint { margin: -3px 0 15px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.secondary-actions { margin-top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.secondary-actions a, .link-button { color: var(--muted); font-size: 12px; }
.secondary-actions form { margin: 0; }
.link-button { width: auto; min-height: 0; margin: 0; padding: 0; border: 0; background: transparent; font-weight: 400; text-decoration: underline; }
.secure-note { margin: 15px 0 0; color: var(--muted); font-size: 10px; text-align: center; }

@media (max-width: 480px) {
  body { padding: 16px; }
  .auth-card { padding: 22px 18px; }
}
