@font-face{font-family:"Peyda";src:url("../fonts/Peyda-Regular.ttf") format("truetype");font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:"Peyda";src:url("../fonts/Peyda-Medium.ttf") format("truetype");font-style:normal;font-weight:500;font-display:swap}
@font-face{font-family:"Peyda";src:url("../fonts/Peyda-SemiBold.ttf") format("truetype");font-style:normal;font-weight:600;font-display:swap}
@font-face{font-family:"Peyda";src:url("../fonts/Peyda-Bold.ttf") format("truetype");font-style:normal;font-weight:700 900;font-display:swap}
html[lang=ar] body,html[lang=ckb] body,html[lang=ar] button,html[lang=ar] input,html[lang=ar] select,html[lang=ckb] button,html[lang=ckb] input,html[lang=ckb] select{font-family:"Peyda","Vazirmatn",system-ui,sans-serif}
:root{--auth-primary:#7047eb;--auth-primary-dark:#5530c9;--auth-teal:#16aaa8;--auth-navy:#10112d;--auth-text:#17172d;--auth-muted:#6d7080;--auth-border:#e9e9f1;--auth-soft:#f3efff;--auth-danger:#c93454;--auth-shadow:0 24px 70px rgba(36,25,86,.14)}
*{box-sizing:border-box}html{min-width:320px;background:#faf9ff}body{margin:0;color:var(--auth-text);font-family:"Vazirmatn",system-ui,sans-serif;font-size:14px}button,input,select,textarea{font:inherit}a{color:inherit}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.auth-page{min-height:100vh;background:radial-gradient(circle at 8% 10%,rgba(22,170,168,.1),transparent 28%),radial-gradient(circle at 92% 88%,rgba(112,71,235,.14),transparent 32%),#faf9ff}
.auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(360px,.92fr) minmax(440px,1.08fr)}
.auth-art{position:relative;isolation:isolate;min-height:100%;padding:clamp(32px,5vw,72px);overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;color:#fff;background:linear-gradient(145deg,#17143b 0%,#4f2bb6 58%,#7047eb 100%)}
.auth-art::before,.auth-art::after{content:"";position:absolute;z-index:-1;border-radius:50%;filter:blur(1px)}.auth-art::before{width:420px;height:420px;inset:-180px -150px auto auto;background:rgba(22,170,168,.25)}.auth-art::after{width:340px;height:340px;inset:auto auto -150px -130px;background:rgba(255,255,255,.08)}
.auth-brand{display:inline-flex;align-items:center;gap:10px;align-self:flex-start;color:#fff;font-size:30px;font-weight:800;letter-spacing:-.8px;text-decoration:none}.auth-brand-mark{width:32px;fill:none;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}.auth-brand-mark path:first-child{stroke:#a990ff}.auth-brand-mark path:last-child{stroke:#35d0cd}
.auth-art-copy{position:relative;z-index:1;max-width:520px}.auth-kicker{display:inline-flex;padding:7px 13px;border:1px solid rgba(255,255,255,.2);border-radius:999px;background:rgba(255,255,255,.09);font-size:12px;font-weight:700}.auth-art h2{margin:18px 0 12px;font-size:clamp(34px,4vw,54px);line-height:1.1;letter-spacing:-1.5px}.auth-art p{max-width:430px;margin:0;color:rgba(255,255,255,.72);font-size:15px;line-height:1.8}
.auth-visual{position:absolute;width:min(58%,430px);aspect-ratio:1;inset:50% 5% auto auto;transform:translateY(-46%);opacity:.9}.auth-ring{position:absolute;inset:10%;border:1px solid rgba(255,255,255,.16);border-radius:50%}.auth-ring::before,.auth-ring::after{content:"";position:absolute;border:1px solid rgba(255,255,255,.1);border-radius:50%}.auth-ring::before{inset:18%}.auth-ring::after{inset:36%}.auth-node{position:absolute;width:54px;height:54px;border-radius:17px;display:grid;place-items:center;color:#fff;background:rgba(255,255,255,.14);box-shadow:0 15px 30px rgba(14,8,42,.18);backdrop-filter:blur(8px)}.auth-node svg{width:27px;fill:none;stroke:currentColor;stroke-width:1.8}.auth-node.one{inset:8% auto auto 14%}.auth-node.two{inset:auto 4% 24% auto}.auth-node.three{inset:auto auto 7% 26%;color:#d9fffe;background:rgba(22,170,168,.28)}
.auth-panel{min-width:0;padding:24px clamp(20px,5vw,80px);display:flex;flex-direction:column}.auth-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:10px}.auth-home{color:var(--auth-muted);font-weight:700;text-decoration:none}.auth-home:hover{color:var(--auth-primary)}.language-form select{min-height:40px;padding:7px 11px;border:1px solid var(--auth-border);border-radius:10px;color:var(--auth-text);background:#fff}.auth-card{width:min(100%,520px);margin:auto;padding:clamp(24px,4vw,42px);border:1px solid rgba(233,233,241,.9);border-radius:22px;background:rgba(255,255,255,.95);box-shadow:var(--auth-shadow)}.auth-card h1{margin:0 0 10px;color:var(--auth-navy);font-size:clamp(27px,3vw,36px);line-height:1.25}.auth-card>p,.auth-card>.muted{margin:0 0 25px;color:var(--auth-muted);line-height:1.75}.auth-form,.form-stack{display:grid;gap:17px}.two-column{grid-template-columns:repeat(2,minmax(0,1fr))}.full{grid-column:1/-1}
.form-field,.field,.auth-card form>p{display:grid;gap:7px;margin:0}.form-field label,.field label,.auth-card form>p label{color:var(--auth-navy);font-weight:800}.form-field input,.field input,.field select,.field textarea,.auth-card form>p input,.auth-card form>p select,.auth-card form>p textarea{width:100%;min-height:50px;padding:11px 14px;border:1px solid #dedde8;border-radius:11px;outline:0;color:var(--auth-text);background:#fff;transition:border-color .2s,box-shadow .2s}.form-field input:focus,.field input:focus,.field select:focus,.field textarea:focus,.auth-card form>p input:focus,.auth-card form>p select:focus,.auth-card form>p textarea:focus{border-color:#b8a6f5;box-shadow:0 0 0 4px rgba(112,71,235,.1)}input[type=checkbox]{width:18px!important;min-height:18px!important;accent-color:var(--auth-primary)}.checkbox-field{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap}.checkbox-field label{order:1}.checkbox-field input{order:0}.helptext,.form-field small{color:var(--auth-muted);font-size:12px;line-height:1.55}.errorlist,.field-errors{margin:0;padding:0;list-style:none;color:var(--auth-danger);font-size:12px}.field-errors:empty{display:none}
.primary-button,.button.primary,.auth-card form>button{width:100%;min-height:50px;padding:11px 18px;border:0;border-radius:11px;color:#fff;background:linear-gradient(135deg,#7748ee,#6438db);box-shadow:0 10px 22px rgba(112,71,235,.22);font-weight:800;cursor:pointer;transition:transform .2s,box-shadow .2s}.primary-button:hover,.button.primary:hover,.auth-card form>button:hover{transform:translateY(-1px);box-shadow:0 13px 26px rgba(112,71,235,.28)}.auth-switch,.auth-link{margin:22px 0 0!important;text-align:center;color:var(--auth-muted)!important;font-size:13px}.auth-switch a,.auth-link a,.auth-card form+a{color:var(--auth-primary);font-weight:800;text-decoration:none}.auth-card form+a{display:block;margin-top:20px;text-align:center}.alert,.messages li,.nonfield{padding:12px 14px;border:1px solid #f0c9d2;border-radius:11px;color:#9f2942;background:#fff2f5}.auth-card dl{display:grid;gap:8px;margin:0 0 20px}.auth-card dl div{padding:10px 12px;border-radius:10px;background:#f8f6ff}.auth-card dt{color:var(--auth-muted);font-size:11px}.auth-card dd{margin:3px 0 0;font-weight:700}
[dir=rtl] body{text-align:right}[dir=rtl] input[type=email],[dir=rtl] input[type=tel]{direction:ltr;text-align:left}
@media(max-width:860px){.auth-shell{grid-template-columns:1fr}.auth-art{min-height:220px;padding:27px 24px}.auth-art-copy{margin-top:42px}.auth-art h2{font-size:30px}.auth-art p{display:none}.auth-visual{width:220px;inset:54% 3% auto auto;opacity:.48}.auth-panel{min-height:calc(100vh - 220px);padding:18px}.auth-card{margin:28px auto}}
@media(max-width:560px){.auth-art{min-height:170px}.auth-art-copy{margin-top:25px}.auth-kicker{display:none}.auth-art h2{max-width:270px;margin:0;font-size:26px}.auth-visual{width:160px}.auth-card{padding:24px 19px;border-radius:17px}.two-column{grid-template-columns:1fr}.full{grid-column:auto}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.auth-phone-summary{margin:-5px 0 18px;padding:12px 14px;border:1px solid var(--auth-border);border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--auth-muted);background:#faf9ff}
.auth-phone-summary strong{color:var(--auth-navy);font-size:15px}
.otp-code-input{direction:ltr!important;text-align:center!important;letter-spacing:8px;font-size:22px;font-weight:800}
.otp-registration-note{padding:11px 13px;border-radius:11px;color:#4d3a83;background:var(--auth-soft);font-size:13px;line-height:1.65}
.otp-actions{margin-top:18px;display:flex;align-items:center;justify-content:center;gap:18px;flex-wrap:wrap;color:var(--auth-muted);font-size:13px}
.otp-actions a,.text-button{color:var(--auth-primary);font-weight:800;text-decoration:none}
.otp-resend-form{display:flex;align-items:center;gap:6px}
.text-button{padding:0;border:0;background:transparent;cursor:pointer}
.text-button:disabled{color:var(--auth-muted);cursor:not-allowed;opacity:.7}
.otp-countdown{min-width:36px;color:var(--auth-muted);direction:ltr;text-align:left}
.otp-debug{margin-bottom:16px;border-color:#c9e7e4;color:#176f71;background:#eefafa}
.form-field label small{color:var(--auth-muted);font-weight:500}

/* auth light/dark theme */
.auth-theme-toggle{width:40px;height:40px;padding:0;border:1px solid var(--auth-border);border-radius:10px;display:grid;place-items:center;color:var(--auth-text);background:#fff;cursor:pointer;font-size:18px}
html[data-theme=dark]{color-scheme:dark;--auth-navy:#f7f4fc;--auth-text:#f7f4fc;--auth-muted:#aaa4b7;--auth-border:#35313f;--auth-soft:#2c2340;--auth-danger:#ff6678;--auth-shadow:0 24px 70px rgba(0,0,0,.34)}
html[data-theme=dark],html[data-theme=dark] body{background:#111018}
html[data-theme=dark] .auth-page{background:radial-gradient(circle at 8% 10%,rgba(22,170,168,.1),transparent 28%),radial-gradient(circle at 92% 88%,rgba(112,71,235,.14),transparent 32%),#111018}
html[data-theme=dark] .auth-panel{background:#111018}
html[data-theme=dark] .auth-card{border-color:var(--auth-border);background:rgba(27,25,36,.97)}
html[data-theme=dark] .language-form select,
html[data-theme=dark] .auth-theme-toggle,
html[data-theme=dark] .form-field input,
html[data-theme=dark] .field input,
html[data-theme=dark] .field select,
html[data-theme=dark] .field textarea,
html[data-theme=dark] .auth-card form>p input,
html[data-theme=dark] .auth-card form>p select,
html[data-theme=dark] .auth-card form>p textarea{color:var(--auth-text);border-color:var(--auth-border);background:#24212d}
html[data-theme=dark] .auth-phone-summary{border-color:var(--auth-border);background:#24212d}
html[data-theme=dark] .otp-registration-note{color:#d9ccff;background:#2c2340}
html[data-theme=dark] .alert,
html[data-theme=dark] .messages li,
html[data-theme=dark] .nonfield{border-color:#663341;color:#ff9bac;background:#321c25}
html[data-theme=dark] .otp-debug{border-color:#285c5e;color:#8ad8da;background:#163739}
