/* ============================================================
   AUTH SCREENS — static/css/auth.css
   Split-screen shell for the pre-auth flow (login, signup,
   password reset). Reuses design-system.css tokens only —
   no new palette or type family is introduced here.
   ============================================================ */

.auth-shell {
  min-height: 100vh;
  display: flex;
}

/* ── BRAND PANEL (left) ── */
.auth-panel {
  position: relative;
  width: 42%;
  min-width: 400px;
  flex-shrink: 0;
  background: var(--ds-primary);
  border-right: 2px solid var(--ds-accent);
  color: var(--ds-text-on-dark);
  display: flex;
  flex-direction: column;
  padding: 2rem 2.5rem;
  overflow: hidden;
}

.auth-panel-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 75% 65% at 30% 30%, black 15%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 30% 30%, black 15%, transparent 100%);
}

.auth-brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  margin-bottom: auto;
}

.auth-brand:hover { color: var(--ds-accent); }
.auth-brand i { color: var(--ds-accent); }

.auth-panel-main {
  position: relative;
  margin: auto 0;
  padding: 2.5rem 0;
}

/* ── NAMEPLATE (signature element) ── */
.auth-plate {
  position: relative;
  background: linear-gradient(155deg, #24425e, #16283a);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.3), 0 24px 48px rgba(0,0,0,0.35);
  padding: 1.5rem 1.75rem;
}

.auth-plate-rivet {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, rgba(255,255,255,0.55), rgba(0,0,0,0.45) 75%);
}
.auth-plate-rivet--tl { top: 10px; left: 10px; }
.auth-plate-rivet--tr { top: 10px; right: 10px; }
.auth-plate-rivet--bl { bottom: 10px; left: 10px; }
.auth-plate-rivet--br { bottom: 10px; right: 10px; }

.auth-plate-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.auth-plate-name {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
}

.auth-plate-serial {
  font-family: var(--ds-font-mono);
  font-size: 0.72rem;
  color: rgba(241,245,249,0.5);
  margin-top: 0.2rem;
}

.auth-plate-seal {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--ds-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ds-accent);
  font-size: 1rem;
}

.auth-plate-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1.25rem;
}

.auth-plate-field--wide { grid-column: 1 / -1; }

.auth-plate-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(241,245,249,0.4);
  margin-bottom: 0.25rem;
}

.auth-plate-value {
  font-family: var(--ds-font-mono);
  font-size: 0.82rem;
  color: rgba(241,245,249,0.92);
}

.auth-plate-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.auth-plate-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ds-pass);
  box-shadow: 0 0 0 3px rgba(21,128,61,0.25);
}

.auth-panel-copy {
  position: relative;
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(241,245,249,0.72);
  margin: 1.5rem 0 0;
  max-width: 34ch;
}

.auth-panel-stats {
  position: relative;
  display: flex;
  gap: 1.75rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.auth-panel-stat-number {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.auth-panel-stat-label {
  font-size: 0.65rem;
  color: rgba(241,245,249,0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-panel-foot {
  position: relative;
  font-size: 0.7rem;
  color: rgba(241,245,249,0.35);
  margin-top: 1.5rem;
}
.auth-panel-foot a {
  color: rgba(241,245,249,0.55);
  text-decoration: underline;
}

/* ── STAGE (right, the form itself) ── */
.auth-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ds-bg);
  padding: 2rem;
}

.auth-stage-inner {
  width: 100%;
  max-width: 380px;
}

.auth-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ds-secondary);
  margin-bottom: 0.6rem;
}

.auth-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ds-primary);
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.auth-subtitle {
  font-size: 0.85rem;
  color: var(--ds-text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.auth-form .mb-3 { margin-bottom: 1rem !important; }

.auth-footnote {
  font-size: 0.8rem;
  color: var(--ds-text-muted);
  margin-top: 1.5rem;
}

.auth-footnote a { color: var(--ds-secondary); font-weight: 600; }

/* Centered status message (reset sent / reset complete / invalid link) */
.auth-status {
  text-align: center;
}

.auth-status-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.3rem;
}

.auth-status-icon--info    { background: var(--ds-info-bg);   color: var(--ds-info); }
.auth-status-icon--success { background: var(--ds-pass-bg);   color: var(--ds-pass); }
.auth-status-icon--warn    { background: var(--ds-review-bg); color: var(--ds-review); }

.auth-status .auth-title,
.auth-status .auth-subtitle { text-align: center; }

/* ── ENTRANCE (respects reduced motion) ── */
@media (prefers-reduced-motion: no-preference) {
  .auth-panel-main,
  .auth-stage-inner {
    animation: auth-rise 0.4s ease-out both;
  }
  .auth-stage-inner { animation-delay: 0.06s; }
}

@keyframes auth-rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
  .auth-shell { flex-direction: column; min-height: auto; }

  .auth-panel {
    width: 100%;
    min-width: 0;
    border-right: none;
    border-bottom: 2px solid var(--ds-accent);
    padding: 1.5rem 1.5rem 1.75rem;
  }

  .auth-panel-main { margin: 0; padding: 1.25rem 0 0; }
  .auth-panel-stats { display: none; }
  .auth-plate-fields { grid-template-columns: 1fr 1fr; }

  .auth-stage { padding: 2.5rem 1.5rem; }
}

@media (max-width: 480px) {
  .auth-plate { padding: 1.15rem 1.25rem; }
  .auth-plate-fields { grid-template-columns: 1fr; gap: 0.75rem; }
  .auth-panel-copy { max-width: none; }
}
