/* ZigZagStream auth frame (layouts/auth): the panel's black frame, the form card on the start side, the brand beside it with the
   headline and the scene; below 1024px the brand is a top band. From mockups/login-v5.html (2026-12-03). Loaded after zs.css.
   Tokens only, logical properties only. Below the frame: the scene, then the sign-in forms' rules (resources/views/auth and the
   region's SMS step). */
body.zs-auth-page{background:var(--zs-frame)}
.zs-auth{display:grid;grid-template-rows:auto 1fr;min-block-size:100vh;min-block-size:100dvh;inline-size:100%}

/* form column: one full-height kt-card (language picker · form · links) */
.zs-auth-main{display:flex;flex-direction:column;min-inline-size:0;padding:0 8px 8px}
.zs-auth-panel{flex:1 1 auto;display:flex;flex-direction:column;min-inline-size:0}
.zs-auth-top{display:none}
.zs-auth-panel .zs-auth-body{flex:1 1 auto;display:flex;align-items:flex-start;justify-content:center;padding:36px 20px}
.zs-auth-form{inline-size:100%;max-inline-size:400px}
.zs-auth-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 20px;padding:16px;
  border-block-start:1px solid var(--border);font-size:var(--text-2sm);color:var(--muted-foreground)}
.zs-auth-foot a{color:var(--secondary-foreground);text-decoration:none}
.zs-auth-foot a:hover{color:var(--mono);text-decoration:underline}

/* brand: on the frame itself, in both themes */
.zs-auth-brand{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;min-inline-size:0;padding:12px 16px;
  color:var(--zz-player-text)}
.zs-auth-brand .zs-mark{inline-size:32px;block-size:32px;color:var(--zs-logo)}
.zs-auth-brand .zs-word{color:var(--zz-player-ink);font-size:var(--text-base)}
.zs-auth-brand .zs-word b{color:var(--zs-logo)}
.zs-auth-brand .zs-lang-btn{color:var(--zz-player-text)}
.zs-auth-brand .zs-lang-btn:is(:hover,.active){background:color-mix(in oklab,var(--zz-player-ink) 12%,transparent);color:var(--zz-player-ink)}
.zs-auth-brand .kt-dropdown-menu{color:var(--popover-foreground)}
.zs-auth-hero{display:none}
.zs-auth-tagline{margin:0;font-size:var(--text-3xl);line-height:1.3;font-weight:700;letter-spacing:-.01em;color:var(--zz-player-ink);text-wrap:balance}
.zs-auth-tagline span{color:var(--zs-logo)}

/* ── the scene (auth/partials/scene, App\Support\AuthScene): an 800 × 600 stage; places are --x/--y in its units, from the
   inline start; the wires are mirrored for rtl. Flat, the logo's green the one accent. ── */
.zs-scene{--zs-flow:4.2s;position:relative;inline-size:100%;aspect-ratio:4/3;container-type:inline-size}
.zs-scene-wires{position:absolute;inset:0;inline-size:100%;block-size:100%;overflow:visible}
[dir=rtl] .zs-scene-wires{transform:scaleX(-1)}
.zs-scene-w{fill:none;stroke:var(--zz-player-line);stroke-width:2;stroke-linejoin:round}
.zs-scene-p{fill:none;stroke:var(--zs-logo);stroke-width:2.5;stroke-linecap:round;stroke-dasharray:10 130;stroke-dashoffset:10;opacity:0}
.zs-scene-t{fill:none;stroke:var(--zs-logo);stroke-width:2.5;stroke-linejoin:round;stroke-dasharray:100 100;stroke-dashoffset:100}
.zs-scene-at{position:absolute;inset-inline-start:calc(var(--x) / 800 * 100%);inset-block-start:calc(var(--y) / 600 * 100%);translate:-50% -50%}
[dir=rtl] .zs-scene-at{translate:50% -50%}
.zs-scene-box{display:grid;place-items:center;border:1px solid var(--zz-player-line);background:var(--zz-player-field);border-radius:var(--radius-xl);
  transition:border-color .5s ease}
.zs-scene-box.is-hit{border-color:var(--zs-logo)}
.zs-scene-obs{inline-size:12cqi;aspect-ratio:1;gap:.6cqi;align-content:center}
.zs-scene-obs svg{inline-size:4.6cqi;block-size:4.6cqi;color:var(--zz-player-ink)}
.zs-scene-obs b{font-family:Inter,system-ui,sans-serif;font-size:max(10px,1.6cqi);font-weight:700;letter-spacing:.06em;color:var(--zz-player-text)}
.zs-scene-obs::after{content:"";position:absolute;inset-block-start:1.2cqi;inset-inline-end:1.2cqi;inline-size:1cqi;block-size:1cqi;border-radius:50%;
  background:var(--zs-live)}
.zs-scene-hub{inline-size:17.5cqi;aspect-ratio:1;border-radius:50%}
.zs-scene-hub .zs-mark{inline-size:8.5cqi;block-size:8.5cqi;color:var(--zs-logo)}
.zs-scene-ring{position:absolute;inset:-1px;border:2px solid var(--zs-logo);border-radius:50%;opacity:0;pointer-events:none}
.zs-scene-live{display:inline-flex;align-items:center;gap:.9cqi;white-space:nowrap}
.zs-scene-live .zs-onair{font-family:Inter,system-ui,sans-serif;font-size:max(10px,1.45cqi)}
.zs-scene-live b{display:inline-flex;align-items:center;gap:.6cqi;font-variant-numeric:tabular-nums;font-size:max(11px,1.75cqi);font-weight:600;
  color:var(--zz-player-ink)}
.zs-scene-live b i{font-size:max(12px,1.9cqi);color:var(--zz-player-muted)}
.zs-scene-pf{inline-size:calc(var(--zs-pf-half,28) / 4 * 1cqi);aspect-ratio:1}
.zs-scene-pf .zz-st-lg{inline-size:60%;block-size:60%;border-radius:var(--radius-md)}
.zs-scene-pf.is-custom{border-style:dashed;border-color:var(--zz-player-ring);font-family:Inter,system-ui,sans-serif;font-size:max(9px,1.25cqi);
  font-weight:700;letter-spacing:.04em;color:var(--zz-player-text)}
/* the tools, lit while it is their turn */
.zs-scene-tool{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.1cqi;inline-size:14cqi;block-size:11.25cqi;
  border:1px solid var(--zz-player-line);border-radius:var(--radius-xl);background:var(--zz-player-field);transition:border-color .5s ease}
.zs-scene-tool i{font-size:max(16px,3.1cqi);color:var(--zz-player-muted);transition:color .5s ease}
.zs-scene-tool span{font-size:max(11px,1.6cqi);font-weight:500;line-height:1.2;white-space:nowrap;color:var(--zz-player-text);transition:color .5s ease}
.zs-scene-tool.is-on{border-color:var(--zs-logo)}
.zs-scene-tool.is-on i{color:var(--zs-logo)}
.zs-scene-tool.is-on span{color:var(--zz-player-ink)}
/* what the tool just did: a toast under it (centred, or held to the stage's edge under the first and last tool) */
.zs-scene-toast{position:absolute;inset-inline-start:calc(var(--x) / 800 * 100%);inset-block-start:calc(var(--y) / 600 * 100%);translate:-50% -50%;
  display:inline-flex;align-items:center;gap:1cqi;block-size:max(28px,4.6cqi);padding-inline:1.1cqi 1.6cqi;border:1px solid var(--zz-player-line);
  border-radius:var(--radius-md);background:var(--zz-player-raise);font-size:max(11px,1.7cqi);font-weight:500;white-space:nowrap;
  color:var(--zz-player-ink);opacity:0;transform:translateY(8px);transition:opacity .5s ease,transform .5s ease}
[dir=rtl] .zs-scene-toast{translate:50% -50%}
.zs-scene-toast.is-start,[dir=rtl] .zs-scene-toast.is-start{translate:0 -50%}
.zs-scene-toast.is-end{translate:-100% -50%}
[dir=rtl] .zs-scene-toast.is-end{translate:100% -50%}
.zs-scene-toast.is-on{opacity:1;transform:none}
.zs-scene-toast .zz-st-lg{inline-size:max(18px,2.6cqi);block-size:max(18px,2.6cqi);border-radius:var(--radius-sm)}
.zs-scene-toast > i{font-size:max(14px,2.1cqi);color:var(--zs-logo)}
.zs-scene-toast em{font-style:normal;color:var(--zz-player-muted)}
.zs-scene-toast bdi{font-family:Inter,'Ravagh',system-ui,sans-serif}
.zs-scene-bar{position:relative;inline-size:max(44px,7.5cqi);block-size:max(6px,.8cqi);border-radius:999px;background:var(--zz-player-line);overflow:hidden}
.zs-scene-bar > span{position:absolute;inset-block:0;inset-inline-start:0;inline-size:52%;border-radius:inherit;background:var(--zs-logo);
  transition:inline-size 1.4s ease .4s}
.zs-scene-toast.is-on .zs-scene-bar > span{inline-size:68%}
/* the stream itself: a thin packet down the zigzag, then out to every platform, on a slow beat */
@media (prefers-reduced-motion:no-preference){
  .zs-scene-p-in{animation:zs-scene-in var(--zs-flow) cubic-bezier(.45,0,.55,1) infinite}
  .zs-scene-p-out{animation:zs-scene-out var(--zs-flow) cubic-bezier(.45,0,.55,1) infinite;animation-delay:calc(var(--i) * 90ms)}
  .zs-scene-obs::after{animation:zs-pulse 2.4s ease-in-out infinite}
}
@keyframes zs-scene-in{0%{stroke-dashoffset:10;opacity:1}40%{stroke-dashoffset:-100;opacity:1}41%,100%{stroke-dashoffset:-100;opacity:0}}
@keyframes zs-scene-out{0%,38%{stroke-dashoffset:10;opacity:0}39%{opacity:1}82%{stroke-dashoffset:-100;opacity:1}83%,100%{stroke-dashoffset:-100;opacity:0}}

/* sign-in forms: title, icon disc, "or" rule, sent-to row, code boxes, resend, Iran mobile field */
.zs-auth-title{font-size:var(--text-2xl);line-height:var(--text-2xl--line-height);font-weight:600;color:var(--mono)}
.zs-auth-sub{font-size:var(--text-2sm);line-height:var(--text-2sm--line-height);color:var(--secondary-foreground)}
.zs-auth-ico{display:grid;place-items:center;inline-size:56px;block-size:56px;margin-inline:auto;border-radius:50%;
  background:var(--zz-brand-soft);border:1px solid var(--zz-brand-line);color:var(--zz-brand-text)}
.zs-auth-ico i{font-size:var(--text-2xl)}
.zs-auth-or{display:flex;align-items:center;gap:10px;color:var(--muted-foreground);font-size:var(--text-xs);font-weight:500;text-transform:uppercase}
.zs-auth-or::before,.zs-auth-or::after{content:"";flex:1 1 auto;border-block-start:1px solid var(--border)}
/* Google, Twitch and Kick (mockups/login-providers.html, 2026-11-22; Twitch and Kick side by side since login-v5): one geometry
   for the three, Google's own (Sign in with Google branding guidelines: 40px high, 4px corners, 12px padding, the 20px logo 10px
   before the text, the text centred after it); each in its brand's colours from its official files, never redrawn. Google: its
   neutral button in both themes (#F2F2F2, no stroke, #1F1F1F; Saeed 2026-12-03: the stroke «به هیچ جای صفحه نمیاد»), Google
   Sans Medium 14/20 (fonts/google-sans), the G cropped from Google's signin-assets.zip. Twitch: Twitch Purple #9146FF, the
   "Black Ops" Glitch with its white face (Twitch's Logo Usage Guidelines, p.5). Kick: black with Kick's green K (#53FC18), so it
   never reads as the green primary button (Saeed's pick). Brand colours are the brands' own, not tokens. */
.zs-auth-providers{display:flex;flex-direction:column;gap:10px}
.zs-sso-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(0,1fr));gap:10px}
.zs-sso-row .zs-sso{justify-content:center}
.zs-sso-row .zs-sso-text{flex:0 1 auto}
.zs-sso{position:relative;display:flex;align-items:center;gap:10px;inline-size:100%;block-size:40px;padding-inline:12px;
  border:1px solid transparent;border-radius:4px;overflow:hidden;font-size:14px;line-height:20px;font-weight:500;letter-spacing:0;
  text-decoration:none;white-space:nowrap;cursor:pointer;transition:box-shadow .218s}
.zs-sso-logo{display:grid;place-items:center;flex:none;inline-size:20px;block-size:20px}
.zs-sso-logo img,.zs-sso-logo svg{display:block;max-inline-size:100%;max-block-size:100%}
.zs-sso-text{flex:1 1 auto;min-inline-size:0;overflow:hidden;text-overflow:ellipsis;text-align:center}
.zs-sso::after{content:"";position:absolute;inset:0;background:currentColor;opacity:0;transition:opacity .218s;pointer-events:none}
.zs-sso:hover{box-shadow:0 1px 2px 0 rgb(60 64 67 / .30),0 1px 3px 1px rgb(60 64 67 / .15)}
.zs-sso:hover::after{opacity:.08}
.zs-sso:active::after{opacity:.12}
.zs-sso:focus-visible{outline:2px solid var(--ring);outline-offset:2px}
.zs-sso-google{background:#F2F2F2;color:#1F1F1F}
.zs-sso-google .zs-sso-text{font-family:'Google Sans',sans-serif}
.zs-sso-twitch{background:#9146FF;color:#FFFFFF}
.zs-sso-twitch .zs-sso-logo img{block-size:20px;inline-size:auto}
.zs-sso-kick{background:#000000;border-color:#000000;color:#FFFFFF}
.dark .zs-sso-kick{border-color:var(--border)}
.zs-sso-kick .zs-sso-logo svg{block-size:18px;inline-size:auto;fill:#53FC18}
/* the code page: the provider that asked for this code (App\Auth\ProviderSignIn::codeFirst), a badge on the mail icon */
.zs-auth-ico{position:relative}
.zs-auth-ico-pf{position:absolute;inset-block-end:-3px;inset-inline-end:-3px;display:grid;place-items:center;inline-size:24px;block-size:24px;
  border-radius:50%;box-shadow:0 0 0 2px var(--background)}
.zs-auth-ico-pf-twitch{background:#9146FF}
.zs-auth-ico-pf-twitch img{block-size:14px;inline-size:auto}
.zs-auth-ico-pf-kick{background:#000000}
.zs-auth-ico-pf-kick svg{block-size:11px;inline-size:auto;fill:#53FC18}
.zs-auth-sent{display:flex;align-items:center;gap:10px;min-inline-size:0;padding:10px 12px;border-radius:var(--radius);
  background:var(--zz-surface-3);border:1px solid var(--border)}
.zs-auth-sent i{font-size:var(--text-lg);color:var(--muted-foreground);flex:none}
/* the whole address, wrapped (first at the <wbr> before the @), never cut: the domain is where typos are */
.zs-auth-sent bdi{flex:1 1 auto;min-inline-size:0;overflow-wrap:anywhere;font-size:var(--text-sm);font-weight:500;color:var(--mono)}
.zs-auth-sent a{flex:none;font-size:var(--text-2sm)}
/* fa draws Latin digits as Persian (Ravagh FaNum): an address shows its real ASCII digits (Inter first), so ali1370@ and
   ali۱۳۷۰@ never look alike. Mobile numbers keep Persian digits. */
html[lang=fa] :is(input[type=email],[data-zs-sent-to]){font-family:Inter,'Ravagh',ui-sans-serif,system-ui,sans-serif}
.zs-otp{display:flex;justify-content:center;gap:10px}
.zs-otp .kt-input{font-size:var(--text-lg);font-weight:600;color:var(--mono)}
.zs-auth-resend{text-align:center;font-size:var(--text-2sm);color:var(--muted-foreground)}
.zs-auth-resend button{font-size:inherit}
.zs-auth-resend button:disabled{color:var(--muted-foreground);cursor:default;text-decoration:none}
.zs-auth-phone .kt-input-addon{block-size:auto;font-weight:500;color:var(--mono);background:var(--zz-surface-3)}

/* an admin's own passkeys (resources/views/passkeys/index): one row each, the name, when, Remove */
.zs-pk-list{display:flex;flex-direction:column;margin:0;padding:0;list-style:none;border:1px solid var(--border);border-radius:var(--radius);
  background:var(--card)}
.zs-pk{display:flex;align-items:center;gap:12px;min-inline-size:0;padding:12px}
.zs-pk + .zs-pk{border-block-start:1px solid var(--border)}
.zs-pk-ico{display:grid;place-items:center;flex:none;inline-size:36px;block-size:36px;border-radius:50%;background:var(--zz-surface-3);
  color:var(--secondary-foreground)}
.zs-pk-ico i{font-size:var(--text-lg)}
.zs-pk-body{display:flex;flex-direction:column;gap:3px;flex:1 1 auto;min-inline-size:0}
.zs-pk-name{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-inline-size:0;font-size:var(--text-sm);font-weight:500;color:var(--mono)}
.zs-pk-name bdi{min-inline-size:0;overflow-wrap:anywhere}
.zs-pk-meta{display:flex;flex-wrap:wrap;gap:0 6px;font-size:var(--text-xs);color:var(--muted-foreground)}
.zs-pk form{flex:none}

/* ≥640: more room around the form */
@media (min-width:640px){
  .zs-auth-main{padding:0 12px 12px}
  .zs-auth-brand{padding:14px 20px}
  .zs-auth-panel .zs-auth-body{align-items:center;padding:48px 32px}
}
/* ≥1024: two columns, the form card on the start side, the brand with the headline and the scene beside it */
@media (min-width:1024px){
  .zs-auth{grid-template-columns:minmax(460px,40%) minmax(0,1fr);grid-template-rows:none;column-gap:12px}
  .zs-auth-main{order:-1;padding:12px;padding-inline-end:0}
  .zs-auth-top{display:flex;justify-content:flex-end;padding:14px 16px 0}
  .zs-auth-panel .zs-auth-body{padding:32px 48px}
  .zs-auth-brand{flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;padding:28px 32px 40px;overflow:hidden}
  .zs-auth-brand .zs-lang{display:none}
  .zs-auth-brand .zs-mark{inline-size:36px;block-size:36px}
  .zs-auth-brand .zs-word{font-size:var(--text-lg)}
  .zs-auth-hero{display:flex;flex-direction:column;align-items:center;gap:28px;inline-size:100%;max-inline-size:760px;margin:auto}
  .zs-auth-tagline{align-self:stretch;text-align:center}
}
@media (min-width:1280px){ .zs-auth-brand{padding-inline:48px} }
@media (min-width:1440px){ .zs-auth-tagline{font-size:var(--text-4xl)} }
