/* Login */
.login-body {
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: var(--charcoal-900);
}

.login-layout {
  width: 100%;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(440px, 1.05fr);
  background: #ffffff;
}

.login-brand-panel {
  position: relative;
  min-height: 100%;
  padding: clamp(2rem, 5vw, 5.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 13%, rgba(244, 169, 0, 0.19), transparent 32%),
    radial-gradient(circle at 88% 82%, rgba(83, 105, 116, 0.22), transparent 34%),
    linear-gradient(145deg, var(--charcoal-950), #263036);
  color: #ffffff;
}

.login-brand-panel::after {
  position: absolute;
  right: -150px;
  bottom: -190px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(255, 255, 255, 0.025),
    0 0 0 90px rgba(255, 255, 255, 0.018);
  content: "";
}

.product-brand-large {
  position: relative;
  z-index: 1;
  align-self: flex-start;
}

.product-brand-large .product-env {
  font-size: 1.55rem;
}

.product-brand-large .product-arrows {
  width: 50px;
  height: 24px;
}

.product-brand-large .product-name {
  font-size: 1.28rem;
}

.login-brand-panel > div {
  position: relative;
  z-index: 1;
  max-width: 550px;
}

.login-kicker {
  margin: 0 0 0.75rem;
  color: var(--env-yellow);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.login-brand-panel h1 {
  max-width: 560px;
  color: #ffffff;
  font-size: clamp(2rem, 4.1vw, 3.45rem);
  line-height: 1.08;
}

.login-brand-panel h1 + p {
  max-width: 520px;
  margin: 1rem 0 0;
  color: #c4cdd2;
  font-size: 1rem;
}

.login-footnote {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #9ca9b0;
  font-size: 0.8rem;
}

.login-form-panel {
  padding: 2rem;
  display: grid;
  place-items: center;
  background: #ffffff;
}

.login-card {
  width: min(430px, 100%);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid rgba(220, 226, 229, 0.85);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 22px 48px rgba(22, 30, 35, 0.1);
}

.login-form-panel .login-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.login-card h2 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.login-hint {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.login-error {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid #e5b2ab;
  border-radius: var(--radius-sm);
  background: var(--red-bg);
  color: var(--red);
  font-size: 0.84rem;
}

.btn-login {
  width: 100%;
  min-height: 48px;
  margin-top: 0.2rem;
}

/* Microsoft's own guidance: their logo on a plain surface, never recoloured to
   match a host brand, so this stays white with a grey border in both themes. */
.btn-microsoft {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: 1px solid #8c8c8c;
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: #5e5e5e;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.btn-microsoft:hover {
  background: #f3f3f3;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.forgot-link {
  align-self: center;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
}

.login-test-note {
  margin: 0.2rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.75rem;
  text-align: center;
}

.login-brand {
  color: var(--ink);
}

.login-brand .brand-mark {
  background: var(--brand-900);
  color: #ffffff;
}

