:root{--auth-bg:#0d0f1e;--auth-border:#243b59;--auth-text:#eef5ff;--auth-muted:#94a8c3;--auth-blue:#4facfe;--auth-cyan:#22d3ee}
*{box-sizing:border-box}
html{width:100%;min-height:100%;overflow-x:hidden;background:var(--auth-bg)}
body.auth-page{width:100%;min-height:100%;margin:0;overflow-x:hidden;background:radial-gradient(circle at 12% 12%,#173865 0,transparent 26%),radial-gradient(circle at 88% 84%,#0d4560 0,transparent 23%),var(--auth-bg);color:var(--auth-text);font-family:Vazirmatn,Tahoma,system-ui,sans-serif}
.auth-page svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.auth-viewport{display:grid;min-height:100vh;min-height:100dvh;place-items:center;padding:clamp(16px,3vw,40px)}
.auth-shell{position:relative;display:grid;grid-template-columns:minmax(420px,.9fr) minmax(480px,1.1fr);width:min(1080px,100%);min-height:610px;overflow:hidden;border:1px solid #355071;background:#0b1729;border-radius:24px;box-shadow:0 30px 90px #02081599,0 0 0 1px #ffffff08}
.auth-form-panel{display:grid;place-items:center;min-width:0;padding:52px 58px;background:linear-gradient(155deg,#101e33 0%,#0d192b 100%)}
.auth-form-content{width:min(100%,430px);max-width:430px}
.auth-brand{position:relative;z-index:2;display:inline-flex;align-items:center;gap:12px;color:#fff;text-decoration:none}
.auth-brand:hover{color:#fff}
.auth-brand-mark{display:grid;width:44px;height:44px;flex:0 0 44px;place-items:center;border:1px solid #8bdaf866;border-radius:13px;background:linear-gradient(145deg,#4facfe,#22b9d8);box-shadow:0 10px 28px #1468c84d}
.auth-brand-mark svg{width:24px;height:24px;stroke-width:2}.auth-brand strong,.auth-brand small{display:block}.auth-brand strong{font-size:16px;line-height:1.4;letter-spacing:.02em}.auth-brand small{margin-top:2px;color:#a6bad3;font-size:11px}.auth-brand-mobile{display:none;margin-bottom:38px}
.auth-heading{margin-bottom:30px}.auth-eyebrow{display:inline-flex;align-items:center;gap:8px;margin-bottom:10px;color:#72c7ff;font-size:12px;font-weight:700}.auth-eyebrow::before{width:22px;height:2px;background:linear-gradient(90deg,var(--auth-cyan),var(--auth-blue));border-radius:9px;content:""}
.auth-heading h1{margin:0 0 10px;color:#fff;font-size:clamp(27px,3vw,34px);font-weight:800;line-height:1.4;letter-spacing:-.02em}.auth-heading p{max-width:350px;margin:0;color:var(--auth-muted);font-size:13px;line-height:1.95}
.auth-form{display:grid;gap:20px}.auth-field{min-width:0}.auth-field .form-label,.auth-label-row .form-label{margin:0 0 8px;color:#dce8f8;font-size:12px;font-weight:600}.auth-label-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.auth-label-row>span{margin-bottom:8px;color:#7088a7;font-size:11px}.auth-input-wrap{position:relative;min-width:0}
.auth-input-wrap .form-control{width:100%;height:var(--ui-control-height,40px);min-height:var(--ui-control-height,40px);padding:7px 14px;border:1px solid #304868!important;border-radius:11px!important;outline:0;background:#0a1628!important;color:#eef5ff!important;box-shadow:inset 0 1px 0 #ffffff05!important;font-size:14px;transition:border-color .2s,box-shadow .2s,background-color .2s}.auth-input-wrap .form-control::placeholder{color:#627894;opacity:1;direction:rtl;text-align:right}.auth-input-wrap .form-control:hover{border-color:#426387!important;background:#0b192d!important}.auth-input-wrap .form-control:focus{border-color:#4e92fa!important;background:#0c1a2e!important;box-shadow:0 0 0 3px #4facfe26!important}
.auth-form.was-validated .auth-input-wrap .form-control:invalid{border-color:#fb7185!important;box-shadow:0 0 0 3px #fb71851f!important}
.auth-input-icon{display:none}
.auth-remember{display:flex;min-height:22px;margin:0;padding:0;align-items:center;gap:9px}.auth-remember .form-check-input{float:none;width:17px;height:17px;margin:0;border-color:#456486;background-color:#0a1628;box-shadow:none}.auth-remember .form-check-input:checked{border-color:#4facfe;background-color:#4facfe}.auth-remember .form-check-input:focus-visible{border-color:#65a3ff;box-shadow:0 0 0 3px #4facfe33}.auth-remember .form-check-label{color:#9eb2cc;font-size:12px;cursor:pointer}
.auth-password-wrap .form-control{padding-left:54px!important}.auth-page .auth-password-toggle.btn{position:absolute!important;z-index:4!important;top:3px!important;bottom:auto!important;left:4px!important;display:grid!important;width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important;padding:0!important;border:1px solid #355173!important;border-radius:8px!important;background:#142640!important;color:#a9bdd7!important;box-shadow:none!important;transform:none!important;place-items:center!important;cursor:pointer;touch-action:manipulation;transition:background-color .2s,color .2s,border-color .2s}.auth-page .auth-password-toggle.btn:hover{border-color:#4e92fa!important;background:#1b3558!important;color:#f2f7ff!important}.auth-page .auth-password-toggle.btn:focus-visible{border-color:#65a3ff!important;background:#1b3558!important;color:#fff!important;outline:3px solid #4facfe33;outline-offset:1px}.auth-page .auth-password-toggle.btn[aria-pressed="true"]{border-color:#00f2fe!important;background:#0e2e4f!important;color:#bfe6ff!important}.auth-password-toggle svg{width:16px;height:16px}.auth-password-toggle [data-password-label]{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.auth-password-toggle .eye-closed,.auth-password-toggle[aria-pressed="true"] .eye-open{display:none}.auth-password-toggle[aria-pressed="true"] .eye-closed{display:block}
.auth-page .auth-input-wrap .form-control:-webkit-autofill,.auth-page .auth-input-wrap .form-control:-webkit-autofill:hover,.auth-page .auth-input-wrap .form-control:-webkit-autofill:focus{-webkit-text-fill-color:#eef5ff!important;caret-color:#eef5ff!important;-webkit-box-shadow:0 0 0 1000px #0a1628 inset!important;box-shadow:0 0 0 1000px #0a1628 inset!important;border-color:#304868!important;transition:background-color 9999s ease-out 0s}
.auth-submit.btn{display:flex!important;align-items:center;justify-content:center;gap:10px;width:100%;height:var(--ui-control-height,40px);min-height:var(--ui-control-height,40px)!important;margin-top:2px;padding:0 14px!important;border:1px solid #5397ff!important;border-radius:11px!important;background:linear-gradient(135deg,#377ff0,#2363d6)!important;color:#fff;font-size:14px;font-weight:700;box-shadow:0 12px 28px #1761d23d!important;transition:transform .18s,box-shadow .18s,filter .18s}.auth-submit.btn:hover{filter:brightness(1.08);box-shadow:0 15px 32px #1761d254!important;transform:translateY(-1px)}.auth-submit.btn:active{transform:translateY(0)}.auth-submit svg{width:18px;height:18px;transform:scaleX(-1)}
.auth-switch{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:26px;padding-top:22px;border-top:1px solid #263a55;color:#8499b3;font-size:12px}.auth-switch a{color:#64b5ff;font-size:12px;font-weight:700;text-decoration:none}.auth-switch a:hover{color:#93ceff;text-decoration:underline}.auth-alert{margin:0 0 20px;padding:11px 13px;border-radius:10px;font-size:12px;line-height:1.7}.auth-alert svg{width:19px;height:19px;flex:0 0 19px;margin-top:2px}
.auth-showcase{position:relative;min-width:0;overflow:hidden;background:linear-gradient(145deg,#16418b 0%,#0c2b64 45%,#081b3c 100%)}.auth-showcase::before{position:absolute;inset:0;background-image:linear-gradient(#ffffff08 1px,transparent 1px),linear-gradient(90deg,#ffffff08 1px,transparent 1px);background-size:38px 38px;mask-image:linear-gradient(to bottom right,#000,transparent 78%);content:""}.auth-showcase::after{position:absolute;inset:0;background:linear-gradient(135deg,#2a73dd12,transparent 54%,#13b8d31f);content:""}
.auth-orb{position:absolute;border-radius:50%;filter:blur(2px);opacity:.75}.auth-orb-one{top:-90px;left:-70px;width:290px;height:290px;background:#00f2fe33;box-shadow:0 0 90px #00f2fe3d}.auth-orb-two{right:-70px;bottom:-120px;width:330px;height:330px;background:#4facfe42;box-shadow:0 0 110px #4facfe45}
.auth-showcase-content{position:relative;z-index:1;display:flex;height:100%;min-height:610px;flex-direction:column;padding:48px 54px}.auth-showcase .auth-brand small{color:#bed6f5}.auth-visual-copy{margin:auto 0 34px}.auth-pill{display:inline-flex;align-items:center;gap:8px;margin-bottom:18px;padding:7px 11px;border:1px solid #a8ddff33;border-radius:999px;background:#061c3b6b;color:#c9e8ff;font-size:11px;backdrop-filter:blur(7px)}.auth-pill i,.auth-system-status i{width:7px;height:7px;border-radius:50%;background:#4facfe;box-shadow:0 0 0 4px rgba(79,172,254,.11),0 0 12px #4facfe}
.auth-visual-copy h2{max-width:470px;margin:0 0 14px;color:#fff;font-size:clamp(29px,3.2vw,41px);font-weight:800;line-height:1.55;letter-spacing:-.035em}.auth-visual-copy p{max-width:430px;margin:0;color:#bad0ec;font-size:14px;line-height:2}.auth-feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:28px}.auth-feature{display:flex;align-items:center;gap:11px;min-width:0;padding:14px;border:1px solid #b8ddff24;border-radius:13px;background:#061b3a73;box-shadow:inset 0 1px 0 #ffffff08;backdrop-filter:blur(8px)}.auth-feature>span{display:grid;width:36px;height:36px;flex:0 0 36px;place-items:center;border-radius:10px;background:#4fa9ff26;color:#8bd2ff}.auth-feature svg{width:19px;height:19px}.auth-feature strong,.auth-feature small{display:block;min-width:0}.auth-feature strong{margin-bottom:3px;color:#f4f8ff;font-size:12px}.auth-feature small{color:#91acd0;font-size:11px;line-height:1.6}
.auth-system-status{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:20px;border-top:1px solid #bbdbff24;color:#bfdbf7;font-size:11px}.auth-system-status span{display:flex;align-items:center;gap:9px}.auth-system-status small{color:#7796bd;font-size:11px;letter-spacing:.08em;text-transform:uppercase}
@media(max-width:991.98px){.auth-shell{grid-template-columns:minmax(0,1fr);width:min(520px,100%);min-height:0}.auth-showcase{display:none}.auth-form-panel{padding:46px}.auth-brand-mobile{display:inline-flex}.auth-form-content{max-width:430px}}
@media(max-width:575.98px){.auth-viewport{place-items:stretch;padding:0}.auth-shell{width:100%;min-height:100vh;min-height:100dvh;border:0;border-radius:0;box-shadow:none}.auth-form-panel{align-items:center;padding:max(28px,env(safe-area-inset-top)) 20px max(24px,env(safe-area-inset-bottom))}.auth-brand-mobile{margin-bottom:36px}.auth-heading{margin-bottom:26px}.auth-heading h1{font-size:27px}.auth-heading p{font-size:12px}.auth-form{gap:18px}.auth-input-wrap .form-control{height:var(--ui-control-height,40px);min-height:var(--ui-control-height,40px)}.auth-label-row>span{display:none}.auth-switch{margin-top:24px}.auth-alert{margin-bottom:18px}}
@media(max-width:360px){.auth-form-panel{padding-inline:16px}.auth-brand-mobile{margin-bottom:30px}.auth-brand-mark{width:40px;height:40px;flex-basis:40px}.auth-heading h1{font-size:25px}.auth-switch{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.auth-page *{scroll-behavior:auto!important;transition:none!important}}

/* Public entry page */
.home-page .home-shell{grid-template-columns:minmax(420px,.92fr) minmax(480px,1.08fr)}
.home-page .auth-form-content{width:min(100%,440px);max-width:440px}
.home-status{display:flex;align-items:center;gap:12px;margin:0 0 22px;padding:13px 14px;border:1px solid #2d4968;border-radius:14px;background:linear-gradient(145deg,#102338,#0b1a2b);box-shadow:inset 0 1px 0 #ffffff08}
.home-status-dot{position:relative;width:10px;height:10px;flex:0 0 10px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.12),0 0 12px rgba(34,197,94,.6)}
.home-status-dot::after{position:absolute;inset:-6px;border:1px solid rgba(34,197,94,.35);border-radius:50%;content:"";animation:home-status-pulse 2.4s ease-out infinite}
@keyframes home-status-pulse{0%{transform:scale(.7);opacity:.9}70%,100%{transform:scale(1.35);opacity:0}}
.home-status-copy{display:grid;flex:1 1 160px;min-width:0;gap:3px;margin-inline-end:auto}
.home-status-copy strong{color:#eef5ff;font-size:12px;font-weight:700}
.home-status-copy small{color:#8fa6c1;font-size:11px;line-height:1.6}
.home-status-badge{flex:0 0 auto;padding:5px 10px;border:1px solid rgba(34,197,94,.28);border-radius:999px;background:rgba(34,197,94,.1);color:#8ff0b0;font-size:10px;font-weight:700;white-space:nowrap}
.home-page .home-actions{display:grid;gap:10px;margin-top:2px}
.home-page a.auth-submit{width:100%;text-decoration:none}
.home-page a.auth-submit:hover{color:#fff!important}
.home-page .home-secondary.btn{display:flex!important;align-items:center;justify-content:center;gap:10px;width:100%;height:var(--ui-control-height,40px);min-height:var(--ui-control-height,40px)!important;padding:0 14px!important;border:1px solid #355173!important;border-radius:11px!important;background:#142640!important;color:#dfeaf8!important;font-size:13px;font-weight:600;text-decoration:none;box-shadow:none!important;transition:border-color .18s,background-color .18s,color .18s}
.home-page .home-secondary.btn:hover{border-color:#4e92fa!important;background:#1a3050!important;color:#fff!important}
.home-page .home-secondary.btn:focus-visible{outline:3px solid rgba(79,172,254,.28);outline-offset:2px}
.home-page .home-secondary svg{width:17px;height:17px}
@media(prefers-reduced-motion:reduce){.home-status-dot::after{animation:none}}


