:root {
  color-scheme: dark;
  --bg: #08090a;
  --surface: #0f1012;
  --line: #25272c;
  --text: #f7f8f8;
  --muted: #8a8f98;
  --accent: #a78bfa;
  --accent-soft: rgba(139, 108, 246, .12);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  display: grid;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  place-items: center;
  background:
    radial-gradient(circle at 72% 18%, rgba(118, 87, 214, .07), transparent 30%),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.login-shell { width: min(390px, calc(100vw - 32px)); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand span { display: flex; flex-direction: column; }
.brand strong { font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 8px; letter-spacing: .16em; text-transform: uppercase; }

.login-card {
  margin-top: 27px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(139,108,246,.035), transparent 40%), var(--surface);
  box-shadow: 0 18px 70px rgba(0, 0, 0, .24);
  padding: 29px 30px 31px;
}

.eyebrow { color: var(--accent); font-size: 9px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: 12px 0 0; font-size: 31px; font-weight: 620; letter-spacing: -.045em; line-height: 1.08; }
p { max-width: 290px; margin: 13px 0 25px; color: var(--muted); font-size: 12px; line-height: 1.55; }
label { display: block; margin-bottom: 8px; color: #b7bac1; font-size: 10px; }

input {
  width: 100%;
  height: 45px;
  border: 1px solid #2d3035;
  border-radius: 7px;
  outline: 0;
  background: #111215;
  color: var(--text);
  padding: 0 13px;
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}

input:focus { border-color: rgba(167,139,250,.6); box-shadow: 0 0 0 3px var(--accent-soft); }

.error { margin: 9px 0 -2px; color: #e8757f; font-size: 10px; }
.error.hidden { display: none; }

button {
  display: flex;
  width: 100%;
  height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 7px;
  margin-top: 15px;
  background: #f0eff4;
  color: #111216;
  cursor: pointer;
  font: 600 10px/1 Inter, ui-sans-serif, sans-serif;
}

button:hover { background: #fff; }
button span { color: #7657d6; font-size: 13px; }
footer { margin-top: 20px; color: #666b73; font-size: 9px; letter-spacing: .025em; }

@media (max-width: 480px) {
  .login-card { padding: 25px 22px 26px; }
  h1 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
