.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 0.72fr);
  color: #fffdf8;
  background: #0b1327;
}

.auth-story {
  padding: clamp(28px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  background:
    linear-gradient(135deg, rgba(8, 19, 38, 0.45), rgba(8, 70, 72, 0.25)),
    url("assets/auth_left_banner.png") center / cover no-repeat;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fffdf8;
  text-decoration: none;
}

.auth-brand .brand-mark {
  border-color: rgba(255, 255, 255, 0.72);
}

.auth-kicker {
  color: var(--gold);
  display: block;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-story h1 {
  max-width: 880px;
  margin: 16px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 8vw, 7.6rem);
  line-height: 0.88;
}

.auth-story p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.12rem;
  line-height: 1.65;
}

.auth-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.auth-proof article {
  padding: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.auth-proof article:last-child {
  border-right: 0;
}

.auth-proof strong {
  display: block;
  margin-bottom: 6px;
}

.auth-proof small {
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.45;
}

.auth-panel-wrap {
  background: rgba(255, 253, 248, 0.96);
  color: var(--ink);
  padding: clamp(22px, 4vw, 52px);
  display: flex;
  align-items: center;
}

.auth-panel {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}

.auth-panel h2 {
  margin: 10px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 0.96;
}

.auth-panel p,
.auth-panel small {
  color: var(--muted);
  line-height: 1.55;
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

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

.auth-form label,
.auth-consent legend {
  display: grid;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-form input,
.auth-form select {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  margin-top: 22px;
  background: rgba(8, 19, 38, 0.04);
}

.auth-tabs button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.auth-tabs button.active {
  color: #fff;
  background: var(--ink);
}

.auth-social {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.auth-social button,
.auth-social a {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  font: inherit;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
}

.auth-social span:first-child {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(8, 19, 38, 0.06);
  font-size: 0.85rem;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.auth-consent {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  display: grid;
  gap: 12px;
  background: rgba(8, 19, 38, 0.03);
}

.auth-form label.auth-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-weight: 450;
  font-size: 0.9rem;
  letter-spacing: 0;
  text-transform: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 1;
  max-height: 120px;
  overflow: visible;
}

.auth-form label.auth-check.hidden-consent {
  opacity: 0;
  max-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
}

.auth-check input {
  min-height: auto;
  margin-top: 4px;
  flex-shrink: 0;
}

.auth-check a {
  color: #1d4ed8;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.auth-check a:hover {
  color: #1e40af;
  text-decoration-thickness: 2px;
}

.auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: center;
}

.auth-status {
  min-height: 24px;
  color: var(--emerald);
  font-weight: 800;
}

.auth-status.error {
  color: var(--coral);
}

.auth-inline-link {
  width: fit-content;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.auth-panel-footer {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.auth-panel-footer a {
  color: var(--ink);
  font-weight: 850;
}

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

  .auth-proof article {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .auth-proof article:last-child {
    border-bottom: 0;
  }
}
