.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 18% 12%, rgba(230, 197, 110, 0.16), transparent 28%),
    linear-gradient(120deg, rgba(2, 8, 19, 0.94), rgba(7, 20, 38, 0.62)),
    url("/assets/moonveil-academy-hero.png") center / cover no-repeat;
}

.auth-shell {
  width: min(1120px, 100%);
  min-height: min(760px, calc(100vh - 56px));
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 430px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(3, 12, 24, 0.78);
  box-shadow: var(--shadow);
}

.auth-visual {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(2, 8, 19, 0.2), rgba(2, 8, 19, 0.84)),
    url("/assets/moonveil-faces/board-bg.png") center / cover no-repeat;
}

.auth-logo {
  width: min(360px, 100%);
  max-height: 112px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 18px 42px rgba(0, 0, 0, 0.42));
}

.auth-logo.compact {
  display: none;
  width: min(270px, 100%);
}

.auth-visual h1 {
  margin: 12px 0 14px;
  color: var(--paper);
  font-size: 4rem;
  text-transform: uppercase;
}

.auth-visual p:not(.eyebrow) {
  max-width: 540px;
  margin: 0;
  color: rgba(248, 251, 255, 0.9);
  font-weight: 850;
}

.auth-card {
  display: grid;
  align-content: center;
  gap: 20px;
  padding: 30px;
  color: var(--ink);
  background: rgba(247, 251, 255, 0.97);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.segmented button {
  min-height: 42px;
  color: #284255;
  background: rgba(8, 21, 38, 0.06);
  border: 1px solid rgba(8, 21, 38, 0.12);
  border-radius: 8px;
  font-weight: 950;
}

.segmented button.active {
  color: var(--ink);
  background: linear-gradient(135deg, #e9f6ff, #bfe3ff);
  border-color: #87c3ef;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form h2 {
  margin: 5px 0 8px;
  font-size: 2rem;
}

.auth-form p:not(.eyebrow):not(.form-message) {
  margin-bottom: 0;
  color: #466177;
  font-weight: 850;
}

.auth-form label {
  display: grid;
  gap: 6px;
}

.auth-form label span {
  color: #35536b;
  font-size: 0.82rem;
  font-weight: 950;
}

.auth-form input {
  min-height: 46px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(8, 21, 38, 0.14);
  border-radius: 8px;
}

.auth-form .code-input {
  font-size: 1.25rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-align: center;
}

.auth-card .primary-button {
  width: 100%;
}

.auth-card .ghost-button {
  width: 100%;
  color: #284255;
  border-color: rgba(8, 21, 38, 0.18);
}

.text-button {
  width: max-content;
  min-height: 0;
  padding: 0;
  color: #315f86;
  background: transparent;
  border: 0;
  font-size: 0.92rem;
  font-weight: 950;
  text-align: left;
}

.text-button:hover {
  color: #0e334f;
}

@media (max-width: 920px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    display: none;
  }

  .auth-logo.compact {
    display: block;
  }
}
