:root {
  color-scheme: dark;
  --bg: #090b0e;
  --surface: #111722;
  --text: #f2f5f8;
  --muted: #9aa8ba;
  --line: #2b3647;
  --blue: #6aa7ff;
  --cyan: #52d6e7;
  --green: #5ee087;
  --red: #ff8ca8;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 12%, rgb(82 214 231 / 12%), transparent 30rem),
    radial-gradient(circle at 86% 84%, rgb(106 167 255 / 14%), transparent 32rem),
    linear-gradient(90deg, rgb(255 255 255 / 3%) 1px, transparent 1px),
    linear-gradient(180deg, rgb(255 255 255 / 3%) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 44px 44px, 44px 44px, auto;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.login-card {
  width: min(100%, 430px);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(28px, 7vw, 42px);
  background: linear-gradient(145deg, rgb(20 28 40 / 96%), rgb(13 18 26 / 97%));
  box-shadow: 0 28px 80px rgb(0 0 0 / 48%), inset 0 1px 0 rgb(255 255 255 / 5%);
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  margin-bottom: 28px;
  border: 1px solid rgb(82 214 231 / 32%);
  border-radius: 13px;
  padding: 11px;
  background: rgb(82 214 231 / 8%);
}

.brand-mark span {
  width: 7px;
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
}

.brand-mark span:nth-child(1) { height: 45%; }
.brand-mark span:nth-child(2) { height: 82%; }
.brand-mark span:nth-child(3) { height: 62%; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 8vw, 42px);
  line-height: 1;
  letter-spacing: -.035em;
}

.intro {
  margin: 16px 0 28px;
  color: var(--muted);
  line-height: 1.55;
}

form { display: grid; gap: 9px; }

label {
  margin-top: 9px;
  color: #dce3ec;
  font-size: 13px;
  font-weight: 750;
}

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  color: var(--text);
  background: rgb(5 8 12 / 60%);
  font: inherit;
}

input:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

button {
  min-height: 50px;
  margin-top: 14px;
  border: 0;
  border-radius: 10px;
  color: #06101f;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 28px rgb(82 214 231 / 15%);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform .16s ease, filter .16s ease;
}

button:hover { filter: brightness(1.08); transform: translateY(-1px); }
button:active { transform: translateY(0); }

.error {
  margin: 0 0 14px;
  border: 1px solid rgb(255 140 168 / 34%);
  border-radius: 10px;
  padding: 11px 13px;
  color: #ffc2d0;
  background: rgb(255 140 168 / 8%);
  line-height: 1.4;
}

.security-note {
  margin: 23px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.security-note span { margin-right: 6px; color: var(--green); }

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