.auth-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--paper);
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1rem 3rem;
  background: linear-gradient(165deg, #1a1033 0%, #4c1d95 38%, #fdf4ff 72%, #faf8fc 100%);
  position: relative;
  overflow: hidden;
}

.auth-shell::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 120%;
  opacity: 0.2;
  background: repeating-conic-gradient(from 0deg at 50% 38%, #fff 0deg 7deg, transparent 7deg 18deg);
  pointer-events: none;
}

.auth-wrap {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
}

.auth-idcard {
  background: var(--paper);
  border: 3px solid var(--navy);
  border-radius: var(--r-lg);
  box-shadow: var(--pop-lg);
  overflow: hidden;
}

.auth-idcard .idcard__band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.25rem;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-idcard__body {
  padding: 1.75rem 1.5rem 1.5rem;
}

.auth-idcard__body h1 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 2.5rem);
  line-height: 1.05;
  color: var(--navy);
  margin: 0 0 0.35rem;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

.auth-idcard__sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
  line-height: 1.45;
}

.auth-field {
  margin-bottom: 1rem;
  text-align: left;
}

.auth-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.auth-field input,
.auth-field select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 3px solid var(--navy);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-weight: 600;
  box-shadow: 0 3px 0 var(--navy);
}

.auth-field input:focus,
.auth-field select:focus {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

.auth-alert {
  padding: 0.85rem 1rem;
  border-radius: var(--r-sm);
  border: 3px solid var(--navy);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  box-shadow: 0 3px 0 var(--navy);
}

.auth-alert--error {
  background: #ffe4e4;
  color: #7f1d1d;
}

.auth-alert--success {
  background: #d1fae5;
  color: #065f46;
}

.auth-idcard .btn {
  margin-top: 0.25rem;
  font-weight: 800;
  border: 3px solid var(--navy);
  box-shadow: var(--pop);
}

.auth-foot {
  margin-top: 1.15rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 600;
}

.auth-foot a {
  color: var(--coral-d);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-back {
  display: block;
  text-align: center;
  margin-top: 1.25rem;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  opacity: 0.85;
}

.auth-back:hover {
  opacity: 1;
  text-decoration: underline;
}

.auth-nav-active {
  opacity: 0.55;
  pointer-events: none;
}
