@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400..800&display=swap");
@font-face{font-family:Zar Arabic;src:url("/assets/NotoSansArabic-Regular.woff") format("woff");font-weight:400;font-display:swap}
@font-face{font-family:Zar Arabic;src:url("/assets/NotoSansArabic-Bold.woff") format("woff");font-weight:700;font-display:swap}
:root{font-family:Vazirmatn,"Zar Arabic",Tahoma,system-ui,sans-serif;line-height:1.8;color-scheme:light}
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;min-height:100dvh;color:#27231d;--accent:#805419;--soft:#f6f1e6;--line:#e6dfd2;--deep:#171b28}
body[data-workspace=manager]{--accent:#584294;--soft:#f1edf9;--line:#e5dff0;--deep:#211a36}
body[data-workspace=store]{--accent:#805419;--soft:#f6f0e3;--line:#e6dfd2;--deep:#171817}
.auth-page{background:var(--soft);display:grid;place-items:center;padding:clamp(1rem,4vw,3rem)}
.auth-shell{width:min(100%,1020px);display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1fr);border-radius:24px;overflow:hidden;border:1px solid var(--line);background:white;box-shadow:0 24px 70px #21170e12}
.auth-shell.small-shell{width:min(100%,580px);display:block}
.auth-visual,.activation-intro{position:relative;display:flex;flex-direction:column;justify-content:space-between;gap:1.3rem;min-height:515px;padding:clamp(1.45rem,4vw,2.7rem);color:#fff5e2;background:linear-gradient(145deg,var(--deep) 15%,#13172240 58%,#151822e8 89%),url("/assets/gold-bullion.webp") 23% 58% / cover}
.auth-visual p{font-size:clamp(1.14rem,2vw,1.48rem);font-weight:700;max-width:27ch;margin:0}
.brand{display:flex;gap:.65rem;align-items:center;font-weight:700;font-size:1.11rem}
.brand span{display:grid;place-items:center;position:relative;width:39px;height:39px;flex:none;border-radius:10px;background:#f2ce88;box-shadow:inset 0 0 0 1px #fff3ce}
.brand span::before,.brand span::after{content:"";position:absolute;width:17px;height:6px;transform:skewX(-24deg);background:#322518;border-radius:1px}
.brand span::before{translate:2px -4px}.brand span::after{translate:-2px 4px}
.auth-panel{min-width:0;padding:clamp(1.35rem,4.3vw,3rem)}
.auth-panel .compact{display:none}
.realm{color:var(--accent);font-weight:700;font-size:.79rem;margin:0 0 .5rem}
.auth-panel>.brand:not(.compact){margin-block-end:1.2rem}
h1,h2,h3,p{margin:0}
h1{font-size:clamp(1.65rem,3.2vw,2.45rem);line-height:1.35;letter-spacing:-.045em}
h2{font-size:1.15rem}
h3{font-size:1.02rem}
.auth-panel p:not(.realm){margin:.45rem 0 .8rem}
nav{display:flex;gap:.3rem;border-block-end:1px solid var(--line);margin:1.1rem 0}
nav a{min-width:5rem;text-align:center;padding:.35rem .45rem;text-decoration:none;color:#635c51}
nav a[aria-current]{color:var(--accent);border-block-end:2px solid var(--accent);font-weight:700}
#auth-tabs> :is(a,button){display:grid;place-items:center;min-width:0;min-height:44px;line-height:1.35}
#auth-tabs>button{background:none;border:0;border-radius:0;color:#635c51;padding:.35rem .45rem;font-weight:400;text-align:center}
#auth-tabs>button[aria-expanded=true]{color:var(--accent);border-block-end:2px solid var(--accent);font-weight:700}
body[data-workspace=customer] #auth-tabs> :is(a,button){flex:1;font-size:.875rem;padding-inline:.2rem}

form{display:grid;gap:.75rem;margin:.9rem 0}
.auth-actions{display:flex;gap:.55rem}
.auth-actions>button{flex:1;min-width:0;line-height:1.45;padding-inline:.4rem}
.auth-preview{margin-top:1.25rem;border-block-start:1px solid var(--line);padding-top:.7rem;font-size:.86rem}
.auth-preview summary{color:var(--accent);cursor:pointer;font-weight:700}
.auth-preview img{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:.65rem;margin-bottom:.35rem}

label{display:grid;gap:.3rem;font-size:.84rem;font-weight:700;min-width:0}
input,button{font:inherit;border-radius:9px;min-height:45px}
input{width:100%;border:1px solid var(--line);padding:.46rem .65rem;background:#fff;color:#27231d}
button{border:1px solid var(--accent);background:var(--accent);color:white;font-weight:700;padding:.48rem .8rem;cursor:pointer}
button:disabled{opacity:.5;cursor:wait}
a{color:var(--accent)}
.outline{background:white;color:var(--accent)}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.feedback{color:#9d281e;font-size:.86rem}.feedback:empty{display:none}
.profile-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.55rem}
.auth-shell.activation-shell{width:min(100%,880px);grid-template-columns:minmax(0,.82fr) minmax(0,1fr)}
.activation-intro{min-height:400px}
.activation-intro a{color:#ffe4b5}
.activation-state,.trial-option{padding:.7rem .85rem;border:1px solid var(--line);border-radius:12px;background:var(--soft)}
.trial-option p{font-size:.85rem}
@media(max-width:690px){
 .auth-shell{display:block;max-width:510px;border-radius:16px}
 .auth-visual{display:none}
 .auth-panel .compact{display:flex;margin-bottom:1rem}
 .activation-intro{min-height:0;padding:1.25rem;gap:.75rem}
 .activation-intro h1{font-size:1.45rem}
}

.password-field{display:block;position:relative;min-width:0}
.password-field input{width:100%;padding-inline-end:3.2rem}
.password-field .reveal-password{position:absolute;inset-inline-end:.25rem;top:50%;transform:translateY(-50%);display:grid;place-items:center;min-width:44px;min-height:44px;padding:0;background:transparent;border:0;color:var(--muted,currentColor);box-shadow:none}
.password-field .reveal-password svg{width:1.25rem;height:1.25rem}
.password-field .reveal-password[aria-pressed=false] .eye-slash{display:none}
.password-field .reveal-password:focus-visible{outline:2px solid var(--accent,currentColor)}
[dir=rtl] .password-field input[dir=ltr]{padding-left:3.2rem;padding-right:.8rem}

.password-checklist{font-size:.85rem}
.password-checklist ul{margin:.2rem 0;padding-inline-start:1.2rem}
.password-checklist li[data-met="true"]{color:#197346}
.password-checklist li[data-met="false"]{color:#a33336}
#mfa-secret,#mfa-recovery, #manager-recovery-result output{display:block;overflow-wrap:anywhere;user-select:all;padding:.5rem}
.verify-control{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:.5rem}
.verify-field{position:relative;display:block}
.verify-field:has(.verify-countdown:not([hidden])) input{padding-right:7rem}
.verify-field .verify-countdown{position:absolute;inset-inline-start:.3rem;bottom:.25rem;min-height:0;padding:.35rem .45rem;font-size:.8rem;white-space:nowrap}
.verify-action{white-space:nowrap}
.verify-control .verify-edit{justify-self:start;min-height:0;padding:.3rem .7rem;font-size:.85rem}

.password-checklist{border:1px solid #cfdbd5;border-radius:12px;padding:.55rem .8rem;background:#f6f9f7}.password-checklist p{margin:0 0 .35rem;font-weight:700;color:#172821}.password-checklist p[data-strength="ضعیف"]{color:#a32136}.password-checklist p[data-strength="قوی"]{color:#176743}.password-rules{display:grid;gap:.16rem;font-size:.79rem}.password-rules span[data-met="false"]{color:#9c2137}.password-rules span[data-met="true"]{color:#176743}
:root[data-theme=dark]{color-scheme:dark}
:root[data-theme=dark] .auth-page{--soft:#141b23;--line:#3c4855;--accent:#ead0a1;color:#edf2f7}
:root[data-theme=dark] .auth-shell,:root[data-theme=dark] .auth-page dialog{background:#1c252f;color:#edf2f7}
:root[data-theme=dark] .auth-panel input,:root[data-theme=dark] .auth-panel select{background:#141d26;color:#edf2f7;border-color:#4e5a67}
:root[data-theme=dark] .auth-panel nav a,:root[data-theme=dark] .auth-panel #auth-tabs>button{color:#d9e1eb}
:root[data-theme=dark] .auth-panel .password-checklist{background:#182730;border-color:#465864}
:root[data-theme=dark] .password-checklist p{color:#edf2f7}
:root[data-theme=dark] .password-rules span[data-met=true],:root[data-theme=dark] .password-checklist p[data-strength="قوی"]{color:#96e8ac}
:root[data-theme=dark] .password-rules span[data-met=false],:root[data-theme=dark] .password-checklist p[data-strength="ضعیف"]{color:#ffacbb}
