/* =========================================================================
   AssocBridge design system — shell-auth.css
   Split-screen authentication layout (Login, Register, Activate, Forgot, Reset, Mfa).
   Aside = brand lockup, bridge line art (aria-hidden), headline, points, helpline footer.
   Load order: tokens, base, components, shell-auth.
   ========================================================================= */

.auth { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 100vh; min-height: 100dvh; }

/* ---------- Aside ---------- */
.auth-aside {
  background-color: var(--navy-900); color: #fff; padding: 2.5rem clamp(2rem, 4vw, 4rem) 2rem; display: flex; flex-direction: column;
  border-right: 3px solid var(--gold-400); position: relative; overflow: hidden;
  background-image: linear-gradient(180deg, rgba(8, 23, 47, 0) 50%, rgba(8, 23, 47, .6) 100%), var(--img-grid);
}
.auth-aside .brand { max-width: 26rem; }
.auth-aside .brand-name { font-size: 1.125rem; }
/* the art fills the formerly hollow centre; it never sits under text (own flex region) */
.auth-art { flex: 1 1 auto; min-height: 11rem; margin: 1.25rem 0 .5rem; background: var(--img-bridge) center bottom / contain no-repeat; pointer-events: none; }
.auth-aside .auth-headline { font-family: var(--font-serif); font-weight: 600; line-height: var(--lh-tight); text-wrap: balance; color: #fff; font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.25rem); margin: 0 0 .9rem; max-width: 26rem; letter-spacing: -.015em; }
.auth-aside .tag { color: var(--navy-200); max-width: 24rem; margin: 0 0 1.5rem; }
.auth-points { list-style: none; margin: 0 0 1.25rem; padding: 1.25rem 0 0; border-top: 1px solid rgba(255, 255, 255, .14); display: grid; gap: .85rem; font-size: var(--fs-sm); color: var(--navy-200); max-width: 26rem; }
.auth-points li { display: flex; gap: .75rem; align-items: flex-start; }
.auth-points i { color: var(--gold-400); font-size: 1.05rem; margin-top: .05rem; }
.auth-help { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem 1.5rem; padding-top: .9rem; border-top: 1px solid rgba(255, 255, 255, .14); font-size: var(--fs-sm); color: var(--navy-300); max-width: 26rem; }
.auth-help strong { color: var(--gold-400); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; font-weight: 700; flex: 0 0 100%; margin-bottom: .1rem; }
.auth-help a { color: var(--navy-200); text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; padding: .35rem 0; overflow-wrap: anywhere; }
.auth-help a:hover { color: #fff; text-decoration: underline; }
.auth-help i { color: var(--gold-400); }

/* ---------- Main ---------- */
.auth-main { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 2.5rem 1.5rem; background: var(--surface); min-width: 0; }
.auth-card { width: 100%; max-width: 27.5rem; }
.auth-card-wide { max-width: 34rem; }
.auth-card h1, .auth-card .auth-title { font-size: var(--fs-2xl); margin: 0 0 .4rem; }
.auth-card .intro { color: var(--muted); margin: 0 0 1.5rem; }
.auth-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; box-shadow: var(--shadow-2); border-top: 3px solid var(--navy-700); }
.auth-form .label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .35rem; }
.auth-form .label-row .form-label { margin: 0; }
.auth-form .label-row a { font-size: var(--fs-sm); font-weight: 600; }
.auth-form-title { font-family: var(--font-serif); font-size: var(--fs-lg); margin: 0 0 1rem; color: var(--navy-900); }
.auth-alt { text-align: center; margin: 1.25rem 0 0; font-size: var(--fs-sm); color: var(--ink-2); }
.auth-alt a { font-weight: 650; }
.secure-line { display: flex; gap: .65rem; align-items: flex-start; margin: 1.25rem 0 0; padding: .8rem 1rem; border-radius: var(--r-md); background: var(--navy-50); border: 1px solid var(--navy-100); font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.5; }
.secure-line i { color: var(--navy-600); font-size: 1rem; margin-top: .05rem; }
.auth-legal { align-items: center; margin-top: 2rem; font-size: var(--fs-xs); color: var(--muted); display: flex; gap: .15rem 1rem; flex-wrap: wrap; justify-content: center; }
.auth-legal a { color: var(--muted); display: inline-block; padding: .5rem 0; }

/* helpers for specific auth pages */
.input-code { font-size: 1.75rem; letter-spacing: .5em; text-align: center; min-height: 3.5rem; font-variant-numeric: tabular-nums; padding-left: 1.25em; }
.rules-list { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .25rem; font-size: var(--fs-xs); color: var(--muted); }
.rules-list li { display: flex; gap: .45rem; align-items: flex-start; }
.rules-list i { margin-top: .1em; color: var(--navy-500); }
.auth-status { text-align: center; padding: .5rem 0 1rem; }
.auth-status > i { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; font-size: 1.6rem; margin: 0 auto 1rem; background: var(--success-bg); color: var(--success); }
.auth-status.is-warning > i { background: var(--warning-bg); color: var(--warning); }
.auth-status.is-danger > i { background: var(--danger-bg); color: var(--danger); }

/* ---------- < 992: the aside collapses to a slim brand bar ---------- */
@media (max-width: 991.98px) {
  .auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; min-height: 100vh; min-height: 100dvh; }
  .auth-aside { padding: 1.1rem 1rem; border-right: 0; border-bottom: 3px solid var(--gold-400); }
  .auth-aside .auth-headline, .auth-aside .tag, .auth-points, .auth-art, .auth-help { display: none; }
  .auth-aside .brand-name { font-size: var(--fs-base); }
  .auth-main { padding: 1.75rem 1rem 2rem; justify-content: flex-start; }
  .auth-card h1, .auth-card .auth-title { font-size: 1.75rem; }
}
/* short desktop viewports: keep the helpline above the fold */
@media (min-width: 992px) and (max-height: 760px) {
  .auth-art { min-height: 6rem; }
  .auth-aside .tag { display: none; }
}
@media (max-width: 575.98px) {
  .auth-form { padding: 1.15rem; }
}
