/* ==========================================================================
   Page family — Auth (Login · Register · AccessDenied)
   Split screen: form card + dark brand panel; collapses on < 992px
   ========================================================================== */
.auth {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(1.5rem, 1rem + 3vw, 3.5rem) 0;
}
.auth-shell {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: stretch;
  min-height: min(760px, calc(100vh - var(--header-h) - 3rem));
  background: #fff; border: 1px solid var(--ink-100);
  border-radius: var(--r-2xl); box-shadow: var(--sh-xl);
  overflow: hidden;
}

/* ---------- Form side ---------- */
.auth-main { display: flex; align-items: center; justify-content: center; padding: clamp(1.75rem, 1rem + 3vw, 3.5rem); }
.auth-card { width: 100%; max-width: 420px; }
.auth-card--wide { max-width: 520px; }
.auth-card--center { text-align: center; }
.auth-card__logo { display: block; width: max-content; margin-bottom: 1.75rem; }
.auth-card__logo img { height: 40px; width: auto; }
.auth-card__title { font-size: var(--fs-3xl); margin: 1rem 0 .5rem; }
.auth-card__sub { color: var(--c-muted); font-size: .95rem; margin-bottom: 1.75rem; }

.auth-form .alert:not(.validation-summary-valid) { margin-bottom: 1.25rem; }
.auth-form .alert ul { margin: 0; padding-left: 1.1rem; }
.auth-field { margin-bottom: 1.15rem; }
.auth-remember { margin: .25rem 0 1.5rem; }
.auth-remember .form-check-label { font-size: .9rem; color: var(--ink-600); }

.auth-switch {
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem;
  margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--ink-100);
  font-size: .92rem; color: var(--c-muted);
}
.auth-switch .link-arrow { font-size: .92rem; color: var(--brand-600) !important; }
.auth-note { margin-top: 1.25rem; align-items: flex-start; line-height: 1.5; }
.auth-note .bi { margin-top: .1rem; }
.auth-note strong { color: var(--ink-700); }

.auth-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.auth-denied-mark {
  width: 84px; height: 84px; margin: 0 auto 1.25rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; color: #fff;
  background: linear-gradient(135deg, #FF7A7E, var(--rose-500));
  box-shadow: 0 0 0 10px var(--rose-50), 0 18px 40px -12px rgba(229,72,77,.55);
}

/* ---------- Brand panel ---------- */
.auth-brand {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(2rem, 1.5rem + 3vw, 4rem);
}
.auth-brand__title { color: #fff; font-size: var(--fs-3xl); margin: 1.25rem 0 1.75rem; max-width: 18ch; }
.auth-brand__list { margin-top: .5rem; }
.auth-brand__features { display: grid; gap: 1.35rem; margin-bottom: 1.75rem; }
.auth-brand__features .feature__title { color: #fff; }
.auth-brand__features .feature__text { color: var(--ink-400); }
.auth-brand__proof {
  display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem;
}
.auth-brand__stat {
  flex: 1 1 140px; padding: 1rem 1.15rem; border-radius: var(--r-md);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: .82rem; color: var(--ink-400);
}
.auth-brand__num { display: block; font-size: var(--fs-2xl); font-weight: 800; color: #fff; line-height: 1.1; margin-bottom: .2rem; }
.auth-brand__num small { font-size: .6em; color: var(--brand-400); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .auth-shell { grid-template-columns: 1fr; min-height: 0; }
  .auth-brand { padding: 2rem 1.5rem; }
  .auth-brand__title { font-size: var(--fs-2xl); max-width: none; }
  .auth-brand__features { display: none; }
}
@media (max-width: 575.98px) {
  .auth { padding: 1rem 0 2rem; }
  .auth-shell { border-radius: var(--r-xl); }
  .auth-main { padding: 1.75rem 1.25rem; }
  .auth-actions .btn-sz { width: 100%; }
}
