/* the login page. Part of the stylesheet split by page; public/css/README.md says why. */
/* ── Login Page ───────────────────────────────────────────── */
body.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  /* Faint wash of the two blues so the page isn't a flat grey field. Large,
     low-opacity and behind everything, so it reads as depth rather than decoration. */
  background:
    radial-gradient(1100px 620px at 12% -8%, rgba(0, 159, 227, .10), transparent 60%),
    radial-gradient(900px 540px at 92% 108%, rgba(0, 79, 137, .10), transparent 60%),
    var(--bg);
}

.login-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 40px 44px 36px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 40px rgba(0, 31, 56, .10), 0 2px 6px rgba(0, 31, 56, .05);
}

/* The three logo colours as a hairline across the top of the card. */
.login-brandbar {
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    var(--accent) 34%,
    var(--brand-cyan) 34%,
    var(--brand-cyan) 67%,
    var(--brand-crimson) 67%
  );
}

.login-head { text-align: center; }

.login-logo {
  height: 30px;
  width: auto;
  display: block;
  margin: 0 auto 22px;
}

.login-card h1 {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--accent-text);
  margin-bottom: 5px;
}

.login-tagline {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.sso-btn {
  display: block;
  padding: 12px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
}

.sso-btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 16px rgba(0, 79, 137, .22);
}

.sso-btn:active { transform: translateY(1px); }

/* Keyboard users get the same affordance as the hover state, plus a ring. */
.sso-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 159, 227, .45);
}

.login-foot {
  margin-top: 16px;
  text-align: center;
  font-size: 11.5px;
  color: var(--text-muted);
}

.error { color: var(--danger); font-size: 13px; line-height: 1.5; }

#login-error,
#sso-unavailable { margin-bottom: 18px; text-align: center; }

#sso-unavailable { margin-bottom: 0; }

@media (max-width: 420px) {
  .login-card { padding: 32px 24px 28px; }
}

