/* Public auth — split hero + form (no theme_tokens / ui-zoom). */

*,
*::before,
*::after {
  box-sizing: border-box;
}

.login-page {
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: #1a1d26;
  background: radial-gradient(120% 80% at 10% 0%, #eef1f6 0%, #f7f8fa 45%, #eceff4 100%);
}

.login-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 420px);
  margin: 12px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, #f3f4f8 0%, #fff9f5 48%, #ffffff 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.8),
    0 28px 80px rgba(15, 23, 42, 0.12),
    0 8px 32px rgba(232, 112, 42, 0.06);
}

.login-hero {
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.login-hero-slides {
  position: absolute;
  inset: 0;
}

.login-hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  transform: scale(1.03);
}

.login-hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.login-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  /* Left: readable copy. Right: hard wash into the form column + corner clips. */
  background:
    linear-gradient(
      to right,
      rgba(12, 14, 22, 0.84) 0%,
      rgba(12, 14, 22, 0.52) 34%,
      rgba(255, 252, 248, 0.22) 52%,
      rgba(255, 255, 255, 0.78) 64%,
      rgba(255, 255, 255, 0.96) 76%,
      #ffffff 88%
    ),
    linear-gradient(
      155deg,
      rgba(255, 255, 255, 0.94) 0%,
      rgba(255, 255, 255, 0.55) 14%,
      transparent 32%
    ),
    linear-gradient(
      205deg,
      rgba(255, 255, 255, 0.94) 0%,
      rgba(255, 255, 255, 0.55) 14%,
      transparent 32%
    );
}

.login-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: 28px 0 0 28px;
  background:
    linear-gradient(
      to left,
      #ffffff 0%,
      rgba(255, 255, 255, 0.98) 6%,
      rgba(255, 255, 255, 0.72) 14%,
      rgba(255, 255, 255, 0) 26%
    );
}

.login-hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  border-radius: 28px 0 0 28px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset -24px 0 48px rgba(255, 255, 255, 0.35),
    inset 0 -40px 80px rgba(0, 0, 0, 0.2);
}

.login-hero-brand {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: clamp(16px, 2.5vw, 32px);
  color: #fff;
  max-width: 34rem;
}

.login-hero-glass {
  padding: 22px 26px 24px;
  border-radius: 22px;
  max-width: 32rem;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.06) 45%,
    rgba(232, 112, 42, 0.08) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
}

.login-hero-logo-plate {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.65);
}

.login-hero-sgs-logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: min(200px, 100%);
}

.login-hero-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 220, 190, 0.95);
}

.login-hero-title {
  margin: 8px 0 0;
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: clamp(1.25rem, 2.1vw, 1.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.login-hero-features {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.9);
}

.login-hero-features li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 8px;
  align-items: start;
}

.login-hero-feature-num {
  font-weight: 800;
  color: #ffb07a;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 18px 20px;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 247, 240, 0.95) 40%,
    rgba(255, 255, 255, 0.98) 100%
  );
  position: relative;
}

.login-panel::before {
  content: "";
  position: absolute;
  inset: 12% 0 12% 0;
  width: 48px;
  margin-left: -24px;
  background: linear-gradient(
    90deg,
    rgba(232, 112, 42, 0.18) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  filter: blur(12px);
  pointer-events: none;
}

.login-card-shell {
  position: relative;
  width: min(380px, 100%);
  padding: 1px;
  border-radius: 24px;
  background: linear-gradient(
    160deg,
    rgba(232, 112, 42, 0.35) 0%,
    rgba(255, 255, 255, 0.6) 38%,
    rgba(232, 112, 42, 0.12) 100%
  );
  box-shadow:
    0 20px 50px rgba(15, 23, 42, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.7);
}

.login-card {
  width: 100%;
  padding: 20px 22px 18px;
  border-radius: 23px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 252, 249, 0.92) 100%
  );
  backdrop-filter: blur(8px);
}

.login-card-brand {
  margin-bottom: 10px;
}

.login-card-eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e8702a;
}

.login-card h1 {
  margin: 6px 0 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.login-card p {
  margin: 6px 0 12px;
  color: #5c6370;
  line-height: 1.35;
  font-size: 13px;
}

.login-card label {
  display: block;
  font-size: 12px;
  color: #5c6370;
  margin: 8px 0 4px;
}

.login-card input {
  width: 100%;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #1a1d26;
  font-size: 14px;
}

.login-card input:focus {
  outline: 2px solid rgba(232, 112, 42, 0.35);
  border-color: #e8702a;
}

.login-card button {
  width: 100%;
  margin-top: 12px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #ef7a32 0%, #e8702a 100%);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(232, 112, 42, 0.35);
}

.login-card button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.login-card .login-alert {
  margin: 8px 0 12px;
  padding: 9px 11px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.35;
}

.login-card .login-alert.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.login-card .login-alert.info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.login-card .login-links {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
}

.login-card .login-links a {
  color: #e8702a;
  text-decoration: none;
}

.login-card .error,
.login-card .info {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
}

.login-card .error {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.login-card .info {
  color: #1a1d26;
  background: rgba(232, 112, 42, 0.1);
  border: 1px solid rgba(232, 112, 42, 0.3);
}

.login-card .links {
  text-align: center;
  margin: 10px 0 0;
  line-height: 1.35;
}

.login-card .links a {
  color: #5c6370;
  font-size: 12px;
  text-decoration: none;
}

.login-card .links a:hover {
  color: #e8702a;
}

.login-card .pw-fields[hidden],
.login-card .code-fields[hidden] {
  display: none;
}

.login-card .secondary {
  background: transparent;
  color: #5c6370;
  border: 1px solid #d1d5db;
  margin-top: 8px;
  box-shadow: none;
}

.login-card .ms-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #8c8c8c;
  background: #fff;
  color: #5e5e5e;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.login-card .back-link {
  display: block;
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  color: #5c6370;
}

.login-card .back-link a {
  color: #e8702a;
  text-decoration: none;
}

.login-card textarea {
  width: 100%;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  font-family: inherit;
  min-height: 80px;
  resize: vertical;
}

@media (max-width: 900px) {
  .login-page {
    height: auto;
    max-height: none;
    overflow: auto;
  }

  .login-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(200px, 30dvh) auto;
    margin: 0;
    border-radius: 0;
    min-height: 100dvh;
  }

  .login-hero-features {
    display: none;
  }

  .login-panel::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-hero-slide {
    transition: none;
  }
}
