:root {
  color-scheme: dark;
  --bg: #0b0d12;
  --bg-elev: #12151d;
  --card: #161a24;
  --border: rgba(255, 255, 255, 0.08);
  --text: #eef1f7;
  --muted: #9aa3b5;
  --accent: #a5b4fc;
  --radius: 16px;
  font-family: "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}

body.login-page {
  line-height: 1.5;
}

.login-page .bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 10% -10%, rgba(99, 102, 241, 0.16), transparent 55%),
    radial-gradient(40rem 30rem at 90% 0%, rgba(255, 0, 51, 0.1), transparent 50%);
}

.shell-narrow {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

.hero-center {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.hero-center .logo {
  color: var(--accent);
}

.eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  line-height: 1.15;
}

.lede {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent), var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.card label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

input[type="password"] {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  padding: 0.75rem 1rem;
  font: inherit;
}

input:focus-visible,
.btn:focus-visible {
  outline: 2px solid rgba(165, 180, 252, 0.55);
  outline-offset: 2px;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 0.75rem 1.1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn.primary {
  background: #6366f1;
  color: #fff;
}

.btn.primary:hover:not(:disabled) {
  background: #818cf8;
}

.btn.wide {
  width: 100%;
  margin-top: 0.75rem;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.form-error {
  margin: 0.75rem 0 0;
  color: #fca5a5;
  font-size: 0.92rem;
}
