/* ==========================================================================
   RiverSync — Auth & Enrollment layer
   Centered-card layouts for the pre-app journey (login, sign-up, enrollment
   wizard, verification, invite, errors, signed-out). Built ON TOP of
   colors_and_type.css + riversync-ui.css. Reuses the same tokens, density,
   and light/dark theming. No new colors invented.
   ========================================================================== */

/* ---------------------------------------------------------------- STAGE --- */
.auth-stage{
  position:relative; min-height:100vh; width:100%;
  display:grid; grid-template-rows:1fr auto; justify-items:center;
  padding:40px 24px; overflow:hidden;
  background:var(--bg);
}
.auth-stage__inner{ width:100%; display:flex; flex-direction:column; align-items:center;
  justify-content:center; }

/* subtle background pattern (tweakable) — faint dot grid + soft brand glow */
.auth-stage[data-bg="pattern"]{
  background-image:
    radial-gradient(circle at 50% -10%, var(--accent-soft) 0%, transparent 46%),
    radial-gradient(var(--border-strong) 0.7px, transparent 0.7px);
  background-size:auto, 22px 22px;
  background-position:center top, center center;
}
[data-theme="dark"] .auth-stage[data-bg="pattern"]{
  background-image:
    radial-gradient(circle at 50% -10%, rgba(90,155,208,0.13) 0%, transparent 48%),
    radial-gradient(rgba(110,120,130,0.22) 0.7px, transparent 0.7px);
}

/* =========================================================
   SPLIT SHELL — portal-style two-pane auth (brand + form)
   Left: dark blue gradient brand panel (mirrors portal login-left).
   Right: clean form surface — simple auth cards sit borderless on it,
   exactly like the portal's borderless login form on white.
   ========================================================= */
.auth-split{ min-height:100vh; display:flex; background:var(--surface); }

/* ---- brand panel (left) ---- */
.auth-brandpanel{
  flex:0 0 40%; width:40%; position:relative; overflow:hidden;
  background:linear-gradient(158deg, #244154 0%, #2C638F 52%, #3A7AAB 100%);
  color:#fff; padding:46px 52px; display:flex; flex-direction:column;
  justify-content:space-between; gap:30px;
}
/* (Brand decision: the cyan/red top pinstripe is not used on the auth panel.) */
/* soft brand bloom */
.auth-brandpanel::after{ content:""; position:absolute; right:-22%; top:-14%; width:64%; height:64%;
  background:radial-gradient(circle, rgba(0,173,238,.20), transparent 70%); pointer-events:none; }
.auth-split[data-brand="solid"] .auth-brandpanel{ background:#2C638F; }
.auth-split[data-brand="solid"] .auth-brandpanel::after{ display:none; }

.auth-brandpanel__logo{ position:relative; z-index:1; margin-top:36px; }
.auth-brandpanel__logo img{ height:44px; width:auto; filter:brightness(0) invert(1); }

.auth-brandpanel__body{ position:relative; z-index:1; max-width:430px; margin-top:auto; margin-bottom:auto; }
.auth-brandpanel__eyebrow{ display:block; font-size:12px; font-weight:600; letter-spacing:.12em;
  text-transform:uppercase; color:rgba(255,255,255,.6); margin-bottom:16px; }
.auth-brandpanel__body h2{ font-size:34px; font-weight:300; line-height:1.18; letter-spacing:-.01em;
  color:#fff; text-wrap:balance; }
.auth-brandpanel__body p{ font-size:16px; line-height:1.6; color:rgba(255,255,255,.74); margin-top:16px; }

/* product proof-point strip (real Frigo numbers) */
.auth-brandpanel__stats{ position:relative; z-index:1; display:flex; gap:34px; }
.auth-stat b{ display:block; font-size:25px; font-weight:300; color:#fff; line-height:1;
  font-variant-numeric:tabular-nums; }
.auth-stat b .u{ font-size:13px; font-weight:400; color:rgba(255,255,255,.62); margin-left:4px; }
.auth-stat span{ display:block; font-size:12px; color:rgba(255,255,255,.5); margin-top:7px; }

/* ---- form pane (right) ---- */
.auth-split__form{ flex:1; min-width:0; overflow-y:auto; background:var(--surface);
  display:grid; grid-template-rows:1fr auto; }
.auth-split__center{ display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding:48px 28px; }
.auth-split .auth-stage__inner{ width:100%; }

/* simple auth cards go borderless on the form surface (portal parity).
   The richer wizard + error layouts keep their own framing. */
.auth-split .auth-card{ border:none; box-shadow:none; background:transparent; padding:0; max-width:392px; }
.auth-split .auth-card--wide{ max-width:520px; }
/* the in-card brand lockup is redundant beside the panel */
.auth-split .auth-brand{ display:none; }

/* mobile-only logo (panel hidden) */
.auth-mobilebrand{ display:none; margin-bottom:26px; }
.auth-mobilebrand img{ height:34px; width:auto; }

/* page footer pinned to bottom of the form pane */
.auth-split .auth-pagefoot{ padding:18px 28px 26px; }

/* ----------------------------------------------------------------- CARD --- */
.auth-card{
  position:relative; z-index:1; width:100%; max-width:428px;
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r-lg); box-shadow:var(--shadow-lg);
  padding:34px 36px 30px;
}
.auth-card--wide{ max-width:560px; }

/* brand lockup + two-tone pinstripe motif (cyan over red, from brand book) */
.auth-brand{ display:flex; flex-direction:column; align-items:center; gap:14px;
  margin-bottom:24px; }
.auth-brand img{ height:24px; width:auto; }
.auth-pinstripe{ width:38px; height:0; }
.auth-pinstripe::before,.auth-pinstripe::after{ content:""; display:block; height:2px;
  border-radius:2px; }
.auth-pinstripe::before{ background:var(--rs-river-cyan); }
.auth-pinstripe::after{ background:var(--rs-sync-red); margin-top:2px; }

.auth-head{ text-align:center; margin-bottom:24px; }
.auth-head--left{ text-align:left; }
.auth-head h1{ font-size:23px; font-weight:600; letter-spacing:-.01em; color:var(--fg);
  line-height:1.2; }
.auth-head p{ font-size:13.5px; color:var(--fg2); margin-top:7px; line-height:1.5; }

/* generous form rhythm */
.auth-form{ display:flex; flex-direction:column; gap:16px; }
.auth-form .rs-btn--block{ margin-top:2px; }

/* row of helper links under fields */
.auth-inline{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.auth-link{ color:var(--accent); font-weight:550; font-size:12.5px; cursor:pointer; }
.auth-link:hover{ text-decoration:underline; }
.auth-link--muted{ color:var(--fg2); }

/* footer beneath the card (switch flows) */
.auth-foot{ margin-top:22px; text-align:center; font-size:13px; color:var(--fg2); }
.auth-foot .auth-link{ font-size:13px; }

/* legal / page foot pinned to bottom of stage */
.auth-pagefoot{ z-index:1; display:flex; align-items:center; gap:14px; flex-wrap:wrap;
  justify-content:center; padding-top:28px; font-size:12px; color:var(--fg3); }
.auth-pagefoot a{ color:var(--fg3); }
.auth-pagefoot a:hover{ color:var(--fg2); }
.auth-pagefoot .dot{ width:3px; height:3px; border-radius:50%; background:var(--fg3); opacity:.6; }

/* --------------------------------------------------- SOCIAL / DIVIDER --- */
.auth-social{ display:flex; flex-direction:column; gap:9px; }
.auth-socialbtn{ display:flex; align-items:center; justify-content:center; gap:10px;
  width:100%; height:var(--control-h); border:1px solid var(--border-strong);
  border-radius:var(--r-md); background:var(--surface); color:var(--fg);
  font-size:13px; font-weight:550; cursor:pointer;
  transition:background .13s var(--ease), border-color .13s; }
.auth-socialbtn:hover{ background:var(--surface-2); border-color:var(--fg3); }
.auth-socialbtn svg{ width:17px; height:17px; flex:none; }

.auth-or{ display:flex; align-items:center; gap:12px; color:var(--fg3); font-size:11.5px;
  font-weight:600; letter-spacing:.08em; text-transform:uppercase; }
.auth-or::before,.auth-or::after{ content:""; height:1px; flex:1; background:var(--border); }

/* password strength meter */
.auth-meter{ display:flex; gap:5px; margin-top:2px; }
.auth-meter__seg{ flex:1; height:4px; border-radius:99px; background:var(--surface-3);
  transition:background .25s var(--ease); }
.auth-meter__seg.on{ background:var(--accent); }
.auth-meter__seg.weak{ background:var(--danger); }
.auth-meter__seg.fair{ background:var(--warning); }
.auth-meter__seg.good{ background:var(--success); }
.auth-meterlabel{ font-size:11.5px; color:var(--fg3); margin-top:1px; }

/* input trailing button (show/hide password) */
.auth-eye{ position:absolute; right:8px; top:50%; transform:translateY(-50%);
  width:26px; height:26px; display:inline-flex; align-items:center; justify-content:center;
  border:none; background:transparent; color:var(--fg3); cursor:pointer; border-radius:var(--r-sm); }
.auth-eye:hover{ color:var(--fg2); background:var(--surface-2); }
.rs-input-wrap .rs-input.has-trail{ padding-right:38px; }

/* slug / workspace field with prefix or suffix */
.auth-slug{ display:flex; align-items:stretch; border:1px solid var(--border-strong);
  border-radius:var(--r-md); background:var(--surface); overflow:hidden;
  transition:border-color .13s, box-shadow .13s; }
.auth-slug:focus-within{ border-color:var(--accent); box-shadow:0 0 0 3px var(--ring); }
.auth-slug.is-error{ border-color:var(--danger); }
.auth-slug__addon{ display:flex; align-items:center; padding:0 11px; background:var(--surface-2);
  color:var(--fg3); font-size:13px; white-space:nowrap; }
.auth-slug__addon--pre{ border-right:1px solid var(--border); }
.auth-slug__addon--suf{ border-left:1px solid var(--border); }
.auth-slug input{ flex:1; min-width:0; height:var(--control-h); border:none; background:transparent;
  outline:none; font:inherit; font-size:13px; color:var(--fg); padding:0 11px;
  font-variant-numeric:tabular-nums; }
.auth-slug__status{ display:flex; align-items:center; padding-right:11px; }
.auth-slug__status .rs-ic{ width:16px; height:16px; }

/* ------------------------------------------------------------- ICON CHIP --- */
.auth-icon{ width:48px; height:48px; border-radius:var(--r-lg); display:flex;
  align-items:center; justify-content:center; margin:0 auto 18px; flex:none; }
.auth-icon .rs-ic{ width:24px; height:24px; }
.auth-icon--accent{ background:var(--accent-soft); color:var(--accent); }
.auth-icon--success{ background:var(--success-soft); color:var(--success); }
.auth-icon--warning{ background:var(--warning-soft); color:var(--warning); }
.auth-icon--danger{ background:var(--danger-soft); color:var(--danger); }

/* small caption block reused by verify/invite */
.auth-readout{ background:var(--surface-2); border:1px solid var(--border);
  border-radius:var(--r-md); padding:11px 13px; font-size:13px; color:var(--fg);
  display:flex; align-items:center; gap:9px; }
.auth-readout .rs-ic{ width:16px; height:16px; color:var(--fg3); flex:none; }
.auth-readout b{ font-weight:600; }

/* =========================================================
   ENROLLMENT WIZARD
   ========================================================= */
.wz{ width:100%; }
.wz--stepped{ max-width:600px; }
.wz--split{ max-width:920px; }

/* top horizontal stepper (stepped layout) */
.wz-steps{ display:flex; align-items:flex-start; gap:0; margin-bottom:26px; }
.wz-step{ flex:1; display:flex; flex-direction:column; align-items:center; gap:8px;
  position:relative; min-width:0; }
.wz-step__dot{ width:30px; height:30px; border-radius:50%; display:flex; align-items:center;
  justify-content:center; font-size:12.5px; font-weight:700; flex:none; z-index:1;
  background:var(--surface); border:1.5px solid var(--border-strong); color:var(--fg3);
  transition:.2s var(--ease); }
.wz-step__dot .rs-ic{ width:15px; height:15px; }
.wz-step.is-active .wz-step__dot{ background:var(--accent); border-color:var(--accent); color:var(--accent-fg); }
.wz-step.is-done .wz-step__dot{ background:var(--accent-soft); border-color:var(--accent-border); color:var(--accent); }
.wz-step__label{ font-size:11.5px; font-weight:550; color:var(--fg3); text-align:center;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
.wz-step.is-active .wz-step__label{ color:var(--fg); font-weight:600; }
.wz-step.is-done .wz-step__label{ color:var(--fg2); }
.wz-step__bar{ position:absolute; top:15px; left:50%; width:100%; height:1.5px;
  background:var(--border); z-index:0; }
.wz-step:last-child .wz-step__bar{ display:none; }
.wz-step.is-done .wz-step__bar{ background:var(--accent-border); }
.wz-step.is-clickable{ cursor:pointer; }
.wz-step.is-clickable:hover .wz-step__dot{ border-color:var(--accent); color:var(--accent); }
.wz-step.is-clickable:hover .wz-step__label{ color:var(--fg); }
.wz-step.is-clickable:focus-visible{ outline:none; }
.wz-step.is-clickable:focus-visible .wz-step__dot{ box-shadow:0 0 0 3px var(--ring); }

/* wizard card body */
.wz-card{ background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r-lg); box-shadow:var(--shadow-lg); }
.wz-card__body{ padding:30px 34px; }
.wz-card__foot{ display:flex; align-items:center; gap:10px; padding:16px 34px;
  border-top:1px solid var(--border); }
.wz-card__foot .spacer{ flex:1; }

.wz-stephead{ margin-bottom:22px; }
.wz-stephead .rs-eyebrow{ display:block; margin-bottom:7px; }
.wz-stephead h2{ font-size:20px; font-weight:600; letter-spacing:-.01em; color:var(--fg); }
.wz-stephead p{ font-size:13.5px; color:var(--fg2); margin-top:6px; line-height:1.5; }

/* split layout: left form + right summary rail */
.wz-split{ display:grid; grid-template-columns:1fr 312px; gap:22px; align-items:start; }
.wz-rail{ position:sticky; top:24px; display:flex; flex-direction:column; gap:16px; }
.wz-rail__card{ background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r-lg); box-shadow:var(--shadow-sm); overflow:hidden; }
.wz-rail__head{ padding:16px 18px 4px; }
.wz-rail__head .rs-eyebrow{ display:block; }
.wz-rail__head b{ display:block; font-size:15px; font-weight:600; color:var(--fg); margin-top:5px; }
.wz-rail__list{ padding:8px 8px 12px; display:flex; flex-direction:column; }
.wz-railstep{ display:flex; align-items:center; gap:11px; padding:9px 10px; border-radius:var(--r-md);
  cursor:default; }
.wz-railstep.is-clickable{ cursor:pointer; }
.wz-railstep.is-clickable:hover{ background:var(--surface-2); }
.wz-railstep.is-clickable:focus-visible{ outline:none; box-shadow:0 0 0 3px var(--ring); }
.wz-railstep__tick{ width:22px; height:22px; border-radius:50%; flex:none; display:flex;
  align-items:center; justify-content:center; font-size:11px; font-weight:700;
  background:var(--surface-3); color:var(--fg3); border:1.5px solid transparent; }
.wz-railstep__tick .rs-ic{ width:13px; height:13px; }
.wz-railstep.is-active{ background:var(--accent-soft); }
.wz-railstep.is-active .wz-railstep__tick{ background:var(--accent); color:var(--accent-fg); }
.wz-railstep.is-done .wz-railstep__tick{ background:var(--accent-soft); color:var(--accent); border-color:var(--accent-border); }
.wz-railstep__meta{ min-width:0; line-height:1.25; }
.wz-railstep__meta b{ font-size:12.5px; font-weight:600; color:var(--fg); display:block; }
.wz-railstep.is-active .wz-railstep__meta b{ color:var(--accent); }
.wz-railstep__meta span{ font-size:11.5px; color:var(--fg3); display:block; white-space:nowrap;
  overflow:hidden; text-overflow:ellipsis; }

/* progress strip (split rail) */
.wz-railprog{ padding:0 18px 16px; }
.wz-railprog .rs-progress{ margin-top:4px; }
.wz-railprog__t{ display:flex; justify-content:space-between; font-size:11.5px; color:var(--fg3);
  font-weight:600; }

/* brand glance panel in rail */
.wz-glance{ background:var(--accent-soft); border:1px solid var(--accent-border);
  border-radius:var(--r-lg); padding:16px 18px; }
.wz-glance b{ display:block; font-size:13px; font-weight:600; color:var(--accent); }
.wz-glance p{ font-size:12.5px; color:var(--fg2); margin-top:5px; line-height:1.5; }

/* segmented card-choices (industry / size) */
.auth-choices{ display:grid; gap:10px; }
.auth-choices--2{ grid-template-columns:1fr 1fr; }
.auth-choice{ display:flex; align-items:center; gap:11px; padding:12px 13px;
  border:1px solid var(--border-strong); border-radius:var(--r-md); background:var(--surface);
  cursor:pointer; transition:border-color .13s, background .13s, box-shadow .13s; }
.auth-choice:hover{ border-color:var(--fg3); background:var(--surface-2); }
.auth-choice.is-selected{ border-color:var(--accent); background:var(--accent-soft);
  box-shadow:0 0 0 1px var(--accent); }
.auth-choice__ic{ width:34px; height:34px; border-radius:var(--r-md); flex:none; display:flex;
  align-items:center; justify-content:center; background:var(--surface-3); color:var(--fg2); }
.auth-choice.is-selected .auth-choice__ic{ background:var(--accent); color:var(--accent-fg); }
.auth-choice__ic .rs-ic{ width:17px; height:17px; }
.auth-choice__meta{ min-width:0; }
.auth-choice__meta b{ font-size:13px; font-weight:600; color:var(--fg); display:block; }
.auth-choice__meta span{ font-size:12px; color:var(--fg3); display:block; margin-top:1px; }
.auth-choice__check{ margin-left:auto; color:var(--accent); opacity:0; transition:opacity .13s; }
.auth-choice.is-selected .auth-choice__check{ opacity:1; }
.auth-choice__check .rs-ic{ width:18px; height:18px; }

/* invite-teammates rows */
.auth-invites{ display:flex; flex-direction:column; gap:9px; }
.auth-inviterow{ display:grid; grid-template-columns:1fr 150px 32px; gap:9px; align-items:center; }
.auth-inviterow .rs-btn--icon{ color:var(--fg3); }

/* confirmation / success */
.auth-confirm{ text-align:center; padding:8px 0 4px; }
.auth-confirm h2{ font-size:22px; font-weight:600; color:var(--fg); margin-top:4px; }
.auth-confirm p{ font-size:14px; color:var(--fg2); margin-top:9px; line-height:1.55; max-width:380px;
  margin-left:auto; margin-right:auto; }
.auth-confirm__card{ margin:22px auto 4px; max-width:340px; text-align:left; }
.auth-tilelist{ display:flex; flex-direction:column; gap:1px; background:var(--border);
  border:1px solid var(--border); border-radius:var(--r-md); overflow:hidden; }
.auth-tile{ display:flex; align-items:center; gap:11px; padding:12px 14px; background:var(--surface); }
.auth-tile .rs-ic{ width:16px; height:16px; color:var(--accent); flex:none; }
.auth-tile__meta{ min-width:0; }
.auth-tile__meta span{ font-size:11px; color:var(--fg3); text-transform:uppercase; letter-spacing:.05em;
  font-weight:700; display:block; }
.auth-tile__meta b{ font-size:13.5px; color:var(--fg); font-weight:600; display:block; margin-top:1px; }

/* success burst ring for confirm icon */
@keyframes auth-pop{ 0%{ transform:scale(.6); opacity:0; } 60%{ transform:scale(1.08); }
  100%{ transform:scale(1); opacity:1; } }
.auth-icon--burst{ animation:auth-pop .42s var(--ease) both; }

/* =========================================================
   ERROR PAGES
   ========================================================= */
.auth-error{ max-width:480px; text-align:center; }
.auth-error__code{ font-size:96px; font-weight:800; line-height:1; letter-spacing:-.04em;
  color:var(--fg); font-variant-numeric:tabular-nums; }
.auth-error__code span{ color:var(--accent); }
.auth-error__digit{ position:relative; display:inline-block; }
.auth-error h1{ font-size:24px; font-weight:600; color:var(--fg); margin-top:18px; }
.auth-error p{ font-size:14px; color:var(--fg2); margin-top:11px; line-height:1.6; }
.auth-error__actions{ display:flex; gap:10px; justify-content:center; margin-top:26px; flex-wrap:wrap; }
.auth-error__id{ margin-top:26px; font-size:12px; color:var(--fg3); }
.auth-error__id code{ font-family:var(--rs-font-mono); background:var(--surface-2);
  border:1px solid var(--border); border-radius:var(--r-sm); padding:2px 7px; color:var(--fg2); }

/* spinning gear for 500 */
@keyframes auth-spin{ to{ transform:rotate(360deg); } }
.auth-spin{ animation:auth-spin 9s linear infinite; transform-origin:center; }
.auth-spin--rev{ animation-duration:6s; animation-direction:reverse; }

/* =========================================================
   SCREEN TRANSITIONS
   ========================================================= */
/* Entrance: slide only (never fades opacity) so the card is ALWAYS visible —
   even if the document timeline is paused/throttled and the animation is
   frozen on its first frame (offscreen preview, background tab). */
@keyframes auth-in{ from{ transform:translateY(12px); } to{ transform:none; } }
.auth-anim{ opacity:1; animation:auth-in .34s var(--ease) both; }
@media (prefers-reduced-motion: reduce){ .auth-anim{ animation:none; } }

@keyframes wz-step-in{ from{ opacity:0; transform:translateX(14px); } to{ opacity:1; transform:none; } }
@keyframes wz-step-in-back{ from{ opacity:0; transform:translateX(-14px); } to{ opacity:1; transform:none; } }
.wz-anim{ animation:wz-step-in .3s var(--ease) both; }
.wz-anim--back{ animation:wz-step-in-back .3s var(--ease) both; }

/* spinner used in submit buttons */
@keyframes auth-rot{ to{ transform:rotate(360deg); } }
.auth-spinner{ width:15px; height:15px; border-radius:50%; border:2px solid currentColor;
  border-top-color:transparent; animation:auth-rot .7s linear infinite; display:inline-block; }

/* =========================================================
   PROTOTYPE SCREEN NAVIGATOR (review aid, not part of product UI)
   ========================================================= */
.pnav{ position:fixed; left:16px; bottom:16px; z-index:2147483640; }
.pnav__toggle{ display:flex; align-items:center; gap:8px; height:36px; padding:0 13px;
  border-radius:var(--r-pill); border:1px solid var(--border); background:var(--surface);
  color:var(--fg); font:inherit; font-size:12.5px; font-weight:600; cursor:pointer;
  white-space:nowrap; box-shadow:var(--shadow); }
.pnav__toggle:hover{ background:var(--surface-2); }
.pnav__toggle .rs-ic{ width:15px; height:15px; color:var(--fg2); }
.pnav__menu{ position:absolute; left:0; bottom:calc(100% + 8px); width:248px;
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r-md);
  box-shadow:var(--shadow-lg); padding:6px; max-height:70vh; overflow-y:auto;
  opacity:0; transform:translateY(6px); pointer-events:none; transition:.14s var(--ease); }
.pnav.is-open .pnav__menu{ opacity:1; transform:none; pointer-events:auto; }
.pnav__grouplbl{ font-size:10px; font-weight:700; letter-spacing:.1em; text-transform:uppercase;
  color:var(--fg3); padding:9px 9px 4px; }
.pnav__item{ display:flex; align-items:center; gap:10px; padding:7px 9px; border-radius:var(--r-sm);
  font-size:12.5px; color:var(--fg); cursor:pointer; }
.pnav__item:hover{ background:var(--surface-2); }
.pnav__item.is-active{ background:var(--accent-soft); color:var(--accent); font-weight:600; }
.pnav__item .rs-ic{ width:15px; height:15px; color:var(--fg3); flex:none; }
.pnav__item.is-active .rs-ic{ color:var(--accent); }

/* below the panel breakpoint: hide brand panel, restore card framing */
@media (max-width:980px){
  .auth-brandpanel{ display:none; }
  .auth-split{ background:var(--bg); }
  .auth-split__form{ background:transparent; }
  .auth-mobilebrand{ display:block; text-align:center; }
  .auth-split .auth-card{ border:1px solid var(--border); box-shadow:var(--shadow-lg);
    background:var(--surface); padding:32px 28px 26px; }
}

@media (max-width:680px){
  .wz-split{ grid-template-columns:1fr; }
  .wz-rail{ position:static; order:-1; }
  .auth-card{ padding:28px 22px 24px; }
  .wz-card__body,.wz-card__foot{ padding-left:20px; padding-right:20px; }
  .auth-choices--2{ grid-template-columns:1fr; }
  .auth-inviterow{ grid-template-columns:1fr 110px 30px; }
}
