:root {
  color-scheme: dark;
  --ink: #07111f;
  --paper: #f5f7fb;
  --muted: #b4c0cf;
  --accent: #5ce5d6;
  --line: rgba(255, 255, 255, .14);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
html { background: var(--ink); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  background: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.login-screen {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(22px, 5vw, 64px);
  background:
    radial-gradient(ellipse at 18% 18%, rgba(31, 84, 111, .42), transparent 42%),
    radial-gradient(ellipse at 86% 78%, rgba(21, 213, 200, .12), transparent 36%),
    linear-gradient(135deg, #081321 0%, #0b1727 48%, #07101d 100%);
}

.login-screen::before,
.login-screen::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(42vw, 520px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .055);
  border-radius: 50%;
  pointer-events: none;
}
.login-screen::before { top: -22%; right: -12%; box-shadow: 0 0 0 42px rgba(255,255,255,.018), 0 0 0 84px rgba(255,255,255,.012); }
.login-screen::after { bottom: -34%; left: -16%; width: min(54vw, 660px); }

.login-card {
  width: min(100%, 456px);
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(20, 32, 48, .97), rgba(11, 20, 33, .96));
  box-shadow: 0 32px 100px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255,255,255,.045);
  backdrop-filter: blur(18px);
}

.login-logo {
  display: block;
  width: clamp(138px, 42%, 172px);
  max-height: 68px;
  object-fit: contain;
  object-position: left center;
  margin: 0 0 38px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .18em;
  line-height: 1.4;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }

h1 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(2.25rem, 6vw, 3.15rem);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -.055em;
}

.login-copy {
  max-width: 32ch;
  margin: 0 0 32px;
  color: #c0cad7;
  font-size: 15px;
  line-height: 1.7;
}

.login-fields { display: grid; gap: 18px; }
label { display: grid; gap: 9px; color: #e7edf5; font-size: 13px; font-weight: 650; }
input {
  width: 100%;
  min-height: 49px;
  padding: 13px 15px;
  border: 1px solid rgba(201, 216, 232, .2);
  border-radius: 10px;
  color: #fff;
  background: rgba(3, 10, 19, .65);
  outline: none;
  font: inherit;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
input:hover { border-color: rgba(201, 216, 232, .38); }
input:focus-visible { border-color: var(--accent); background: rgba(3, 10, 19, .9); box-shadow: 0 0 0 4px rgba(92, 229, 214, .13); }

.login-error { min-height: 20px; margin: 13px 0 7px; color: #ffb4b4; font-size: 13px; line-height: 1.5; }

.primary-cta {
  display: inline-flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  color: #06131c;
  background: var(--accent);
  box-shadow: 0 8px 24px rgba(21, 213, 200, .14);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.primary-cta:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 12px 28px rgba(21, 213, 200, .2); }
.primary-cta:active { transform: translateY(0); }
.primary-cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

@media (max-width: 520px) {
  .login-screen { padding: 18px; }
  .login-card { border-radius: 18px; padding: 29px 24px; }
  .login-logo { margin-bottom: 32px; }
  .login-copy { margin-bottom: 26px; }
}

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