.login {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(
      1100px 520px at 50% -10%,
      oklch(78% 0.13 184 / 0.08),
      transparent 60%
    ),
    var(--bg);
  overflow: hidden;
}

/* Faint console scanlines for control-room texture. */
.login__scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    oklch(93% 0.008 var(--brand-hue) / 0.016) 0px,
    oklch(93% 0.008 var(--brand-hue) / 0.016) 1px,
    transparent 1px,
    transparent 3px
  );
  mask-image: radial-gradient(70% 60% at 50% 40%, black, transparent);
}

.login__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 26px 22px;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
}

.login__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.login__logo {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-press));
  display: grid;
  place-items: center;
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 17px;
}
.login__title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.login__sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.login__error {
  font-size: 13px;
  color: var(--bad);
  background: var(--bad-soft);
  border: 1px solid var(--bad-line);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
}

.login__foot {
  text-align: center;
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 4px;
}
