:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0f0f14;
  color: #e2e8f0;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.16), transparent 34rem),
    #0f0f14;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(100%, 420px);
  padding: clamp(28px, 7vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #1e1e2e;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.brand {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.15);
  color: #a78bfa;
  font-size: 24px;
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 8px;
  color: #7577f3;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1 { margin: 0; font-size: clamp(28px, 7vw, 38px); line-height: 1.08; }
.intro { margin: 12px 0 30px; color: #94a3b8; }
.field + .field { margin-top: 18px; }

label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 650; }

input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  outline: none;
  background: #12121a;
  color: inherit;
  font: inherit;
}

input:focus-visible, button:focus-visible {
  outline: 3px solid rgba(99, 102, 241, 0.4);
  outline-offset: 2px;
}

.message { margin: 18px 0 0; color: #fca5a5; font-size: 14px; }

button {
  width: 100%;
  min-height: 48px;
  margin-top: 24px;
  border: 0;
  border-radius: 8px;
  background: #6366f1;
  color: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

button:hover { background: #7577f3; }
button:disabled { cursor: wait; opacity: 0.7; }

@media (max-width: 480px) {
  .login-shell { padding: 0; align-items: stretch; }
  .login-card { width: 100%; min-height: 100vh; border: 0; border-radius: 0; padding-top: 15vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
