body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 18%, rgba(244, 196, 112, 0.16), transparent 22%),
    radial-gradient(circle at 82% 14%, rgba(90, 154, 242, 0.16), transparent 24%),
    radial-gradient(circle at 70% 78%, rgba(67, 201, 176, 0.12), transparent 22%),
    linear-gradient(180deg, #07101c 0%, #0a1423 50%, #101b2c 100%);
  color: #eff4fa;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 92%);
  pointer-events: none;
}

.login-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 34px 22px;
}

.login-layout {
  width: min(1220px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: 24px;
  align-items: stretch;
}

.brand-rail,
.auth-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  box-shadow: 0 30px 84px rgba(0, 0, 0, 0.32);
}

.brand-rail {
  background:
    radial-gradient(circle at top right, rgba(255, 208, 128, 0.13), transparent 24%),
    linear-gradient(180deg, rgba(12, 22, 38, 0.96) 0%, rgba(9, 18, 32, 0.92) 100%);
  padding: 34px;
}

.auth-card {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), transparent 20%),
    linear-gradient(180deg, rgba(12, 20, 34, 0.96) 0%, rgba(15, 24, 40, 0.94) 100%);
  padding: 28px;
  display: grid;
  gap: 16px;
}

.eyebrow,
.label,
.feature-kicker {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow,
.feature-kicker {
  color: #f1c97e;
}

.label {
  color: #9fb4cf;
}

h1,
h2,
h3,
.feature-card strong {
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  margin: 14px 0 12px;
  max-width: 12ch;
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

h2 {
  margin: 6px 0 0;
  font-size: 3.1rem;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

h3 {
  margin: 2px 0 0;
  font-size: 1.95rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.lede,
.auth-copy,
.muted,
.feature-card p {
  color: #b8c7db;
}

.hero-kicker {
  margin-top: 14px;
  max-width: 28ch;
  color: #d7e4f2;
  font-size: 14px;
  line-height: 1.45;
}

.lede {
  margin: 0;
  max-width: 56ch;
  font-size: 1.08rem;
  line-height: 1.65;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.feature-card {
  min-height: 176px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.065);
}

.feature-card strong {
  font-size: 1.42rem;
  line-height: 1.05;
  color: #f8fbff;
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

.accent-amber {
  box-shadow: inset 0 0 0 1px rgba(241, 201, 126, 0.12);
}

.accent-blue {
  box-shadow: inset 0 0 0 1px rgba(117, 173, 247, 0.12);
}

.accent-emerald {
  box-shadow: inset 0 0 0 1px rgba(98, 214, 184, 0.12);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.trust-pill,
.status-pill,
.panel-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trust-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #deebf8;
}

.auth-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.status-stack {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.status-pill {
  background: rgba(241, 201, 126, 0.14);
  color: #f7d48f;
}

.status-pill.subtle {
  background: rgba(255, 255, 255, 0.06);
  color: #d7e3f0;
}

.auth-copy {
  margin: -2px 0 4px;
  font-size: 1rem;
  line-height: 1.55;
}

.flash {
  min-height: 22px;
  color: #ffd1d1;
  font-size: 14px;
}

.panel {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 22px;
  padding: 20px;
}

.auth-panel {
  display: grid;
  gap: 14px;
}

.panel-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.panel-badge {
  background: rgba(255, 255, 255, 0.07);
  color: #d7e3f0;
}

.destination-row {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(5, 12, 24, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.destination-value {
  font-family: "SFMono-Regular", Menlo, monospace;
  font-size: 14px;
  color: #f0f4fb;
}

.stack {
  display: grid;
  gap: 12px;
}

.field-toggle-row {
  display: grid;
  gap: 5px;
}

.text-button {
  min-height: 0;
  justify-content: flex-start;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  color: #f1c97e;
  font-size: 13px;
  letter-spacing: 0.03em;
}

.text-button:hover:not(:disabled) {
  transform: none;
  box-shadow: none;
  color: #ffd591;
}

.toggle-hint {
  color: #8da2be;
  font-size: 12px;
  line-height: 1.5;
}

.collapsible-field {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: max-height 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.collapsible-field.is-visible {
  max-height: 120px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  color: #edf3fb;
}

input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(4, 10, 22, 0.88);
  color: #f8fbff;
  padding: 13px 15px;
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

input::placeholder {
  color: #70839f;
}

input:focus {
  outline: none;
  border-color: rgba(255, 207, 128, 0.68);
  box-shadow: 0 0 0 4px rgba(255, 207, 128, 0.14);
  transform: translateY(-1px);
}

button,
.sso-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}

button {
  border: none;
  background: linear-gradient(135deg, #ffd591 0%, #efbb5d 100%);
  color: #08101c;
  box-shadow: 0 16px 36px rgba(239, 187, 93, 0.22);
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

button:hover:not(:disabled),
.sso-link:hover {
  transform: translateY(-1px);
}

button:hover:not(:disabled) {
  box-shadow: 0 20px 42px rgba(239, 187, 93, 0.28);
}

button.text-button,
button.text-button:hover:not(:disabled) {
  min-height: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: #f1c97e;
}

button:disabled {
  cursor: default;
  opacity: 0.62;
  box-shadow: none;
}

.sso-grid {
  display: grid;
  gap: 12px;
}

.sso-link {
  justify-content: space-between;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f4f8ff;
}

.sso-link::after {
  content: "→";
  font-size: 16px;
  color: #f1c97e;
}

.muted {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.empty-state {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: #b9c8dc;
  border: 1px dashed rgba(255, 255, 255, 0.09);
}

.empty-state strong {
  display: block;
  margin-bottom: 8px;
  color: #f2f6fb;
  font-size: 15px;
}

.empty-state p {
  margin: 0;
  line-height: 1.55;
}

.empty-panel {
  align-content: start;
}

@media (max-width: 980px) {
  .login-layout {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .auth-card,
  .brand-rail {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .login-shell {
    padding: 18px;
  }

  .brand-rail,
  .auth-card {
    border-radius: 24px;
  }

  .auth-header,
  .panel-header {
    grid-template-columns: 1fr;
    display: grid;
  }

  .status-stack {
    justify-items: start;
  }

  h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  h3 {
    font-size: 1.7rem;
  }
}
