/* ZigZagStream auth frame (layouts/auth): form card beside the black brand panel; on phones the brand panel is a top band.
   From the approved mockups/login.html (Metronic 9 "branded" auth). Loaded after zs.css. Tokens only, logical properties only.
   Below the frame: the sign-in forms' rules (resources/views/auth and the region's SMS step). */
.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{order:2;display:flex;flex-direction:column;min-inline-size:0;padding:12px}
.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:32px 16px}
.zs-auth-form{inline-size:100%;max-inline-size:380px}
.zs-auth-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 20px;padding:14px 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 panel: black in both themes */
.zs-auth-brand{order:1;position:relative;isolation:isolate;display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:10px 16px;background:var(--zs-ink);color:var(--zz-player-text)}
.zs-auth-deco{position:absolute;inset:0;z-index:-1;overflow:hidden;border-radius:inherit;pointer-events:none}
.zs-auth-deco::before{content:"";position:absolute;inset:0;
  background-image:radial-gradient(color-mix(in oklab,var(--zz-player-ink) 10%,transparent) 1px,transparent 1.6px);background-size:22px 22px;
  -webkit-mask-image:linear-gradient(to bottom,var(--zs-ink),transparent 85%);mask-image:linear-gradient(to bottom,var(--zs-ink),transparent 85%)}
.zs-auth-deco::after{content:"";position:absolute;inset-inline-end:-25%;inset-block-end:-35%;inline-size:85%;aspect-ratio:1;border-radius:50%;
  background:radial-gradient(closest-side,color-mix(in oklab,var(--primary) 24%,transparent),transparent)}
.zs-auth-wm{display:none}
.zs-auth-brand .zs-brand{position:relative}
.zs-auth-brand .zs-mark{inline-size:32px;block-size:32px}
.zs-auth-brand .zs-word{color:var(--zz-player-ink);font-size:var(--text-base)}
.zs-auth-brand .zs-word b{color:var(--primary)}
.zs-auth-hero{display:none}
.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-tagline span{color:var(--primary)}
.zs-auth-tagline{font-size:var(--text-2xl);line-height:var(--text-2xl--line-height);font-weight:600;color:var(--zz-player-ink);text-wrap:balance}
.zs-pf-row{--zs-pf:52px;--zs-pf-i:28px;--zs-pf-r:14px;display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:0;padding:0;list-style:none}
.zs-pf{display:grid;place-items:center;inline-size:var(--zs-pf);block-size:var(--zs-pf);border-radius:var(--zs-pf-r);background:var(--zz-player-ink);
  box-shadow:0 0 0 1px var(--zz-player-line)}
.zs-pf img,.zs-pf svg{inline-size:var(--zs-pf-i);block-size:var(--zs-pf-i)}
.zs-pf-custom{inline-size:auto;padding-inline:14px;background:transparent;box-shadow:none;border:1px dashed var(--zz-player-ring);
  color:var(--zz-player-text);font-size:var(--text-xs);font-weight:600;letter-spacing:.04em}
.zs-kick-bg{fill:var(--zz-pf-kick)}
.zs-kick-k{fill:var(--zz-pf-kick-ink)}

/* sign-in forms: title, icon disc, "or" rule, sent-to row, code boxes, resend, Iran mobile field */
.zs-auth-title{font-size:var(--text-xl);line-height:var(--text-xl--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:8px;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)}
.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:8px}
.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)}

/* ≥640: form centred; brand hero (tagline + platforms) shown */
@media (min-width:640px){
  .zs-auth-panel .zs-auth-body{align-items:center;padding:40px}
  .zs-otp{gap:10px}
  .zs-auth-hero{display:flex;flex-direction:column;gap:16px;position:relative}
  .zs-pf-row{--zs-pf:44px;--zs-pf-i:24px;--zs-pf-r:12px;gap:10px}
}
/* 640–767: still stacked, the top band grows into a hero strip */
@media (min-width:640px) and (max-width:767.98px){
  .zs-auth-brand{flex-wrap:wrap;row-gap:20px;padding:16px 24px 24px}
  .zs-auth-hero{order:3;flex:1 0 100%}
  .zs-auth-tagline{font-size:var(--text-xl);line-height:var(--text-xl--line-height)}
}
/* ≥768: two columns (form card · brand panel) */
@media (min-width:768px){
  .zs-auth{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:none;gap:16px;padding:16px}
  .zs-auth-main{order:1;padding:0}
  .zs-auth-panel .zs-auth-body{padding:24px}
  .zs-auth-top{display:flex;justify-content:flex-end;padding:12px 16px 0}
  .zs-auth-foot{border-block-start:0;padding-block:16px 20px}
  .zs-auth-brand{order:2;flex-direction:column;align-items:stretch;justify-content:space-between;gap:32px;padding:32px;
    border-radius:calc(var(--radius) * 1.6);border:1px solid var(--zz-player-line)}
  .zs-auth-brand .zs-lang{display:none}
  .zs-auth-brand .zs-mark{inline-size:40px;block-size:40px}
  .zs-auth-brand .zs-word{font-size:var(--text-xl)}
  .zs-auth-wm{display:block;position:absolute;inset-inline-end:-10%;inset-block-start:16%;block-size:48%;inline-size:auto;
    color:color-mix(in oklab,var(--primary) 11%,transparent)}
  .zs-auth-hero{gap:24px}
}
@media (min-width:1024px){
  .zs-auth{grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:20px;padding:20px}
  .zs-auth-panel .zs-auth-body{padding:40px}
  .zs-auth-top{padding:16px 20px 0}
  .zs-auth-foot{padding-block:18px 22px}
  .zs-auth-brand{gap:40px;padding:48px 56px}
  .zs-auth-wm{inset-block-start:12%;block-size:62%}
  .zs-auth-hero{gap:28px}
  .zs-pf-row{--zs-pf:52px;--zs-pf-i:28px;--zs-pf-r:14px;gap:12px}
}
