

:root {
    --a-bg: #0a1014;
    --a-bg-2: #0b141a;
    --a-surface: #111f27;
    --a-surface-2: #16262f;
    --a-line: #223640;
    --a-line-soft: #1a2a32;
    --a-text: #e8f1f5;
    --a-muted: #8ea6b2;
    --a-muted-2: #5f7788;
    --a-neon: #00e6a8;
    --a-neon-2: #24f5c6;
    --a-blue: #4fc3ff;
    --a-danger: #ff6b7d;
    --a-warn: #ffc24b;
    --a-info: #4fc3ff;
    --a-radius: 14px;
    --a-radius-lg: 24px;
    --a-font: "Vazirmatn", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0; padding: 0; width: 100%; max-width: 100%;
    min-height: 100%; overflow-x: hidden;
}
html { background: var(--a-bg); }
body {
    font-family: var(--a-font);
    color: var(--a-text);
    background: var(--a-bg);
    isolation: isolate;
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(1200px 640px at 88% -14%, rgba(0,230,168,.16), transparent 58%),
        radial-gradient(1000px 640px at -14% 4%, rgba(79,195,255,.09), transparent 55%),
        radial-gradient(760px 520px at 50% 122%, rgba(0,230,168,.07), transparent 60%);
}
a { text-decoration: none; color: var(--a-neon); }
a:hover { color: var(--a-neon-2); }

.auth-shell { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1fr; }
.auth-main, .auth-page {
    display: flex;
    padding: 20px 14px;
    padding-top: max(58px, calc(14px + env(safe-area-inset-top, 0px)));
    padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));
    min-width: 0;
}
.auth-main > *, .auth-page > * { margin: auto; }
.auth-page { min-height: 100vh; min-height: 100dvh; }

.auth-aside {
    display: none; position: relative; overflow: hidden;
    padding: 48px; flex-direction: column; justify-content: space-between;
    background:
        radial-gradient(650px 420px at 18% 8%, rgba(0,230,168,.20), transparent 60%),
        radial-gradient(600px 500px at 92% 100%, rgba(79,195,255,.13), transparent 60%),
        linear-gradient(160deg, #0a1620, #050b10 72%);
    border-inline-end: 1px solid var(--a-line);
}
.auth-aside::after {
    content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 22px 22px;
}
.auth-aside__top { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; }
.auth-aside__logo {
    width: 46px; height: 46px; border-radius: 13px; object-fit: contain;
    background: rgba(255,255,255,.04); padding: 6px; border: 1px solid var(--a-line);
    filter: drop-shadow(0 6px 16px rgba(0,230,168,.28));
}
.auth-aside__brand { font-weight: 800; font-size: 20px; color: #fff; }
.auth-aside__center { position: relative; z-index: 2; }
.auth-aside__headline { font-size: 34px; line-height: 1.25; font-weight: 800; color: #fff; margin: 0 0 14px; }
.auth-aside__headline .grad { background: linear-gradient(90deg, var(--a-neon), var(--a-blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-aside__sub { color: var(--a-muted); font-size: 15.5px; line-height: 1.9; max-width: 420px; margin: 0; }
.auth-features { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; position: relative; z-index: 2; }
.auth-features li { display: flex; align-items: center; gap: 12px; color: var(--a-text); font-size: 14.5px; }
.auth-features .fic { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(0,230,168,.12); color: var(--a-neon); border: 1px solid rgba(0,230,168,.25); }
.auth-aside__foot { position: relative; z-index: 2; color: var(--a-muted-2); font-size: 12.5px; }
.auth-orb { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .55; z-index: 1; animation: floaty 9s ease-in-out infinite; }
.auth-orb.o1 { width: 92px; height: 92px; top: 22%; inset-inline-end: 12%; background: radial-gradient(circle at 30% 30%, rgba(0,230,168,.55), transparent 70%); }
.auth-orb.o2 { width: 60px; height: 60px; top: 60%; inset-inline-end: 30%; background: radial-gradient(circle at 30% 30%, rgba(79,195,255,.5), transparent 70%); animation-delay: -3s; }
.auth-orb.o3 { width: 44px; height: 44px; top: 78%; inset-inline-end: 8%; background: radial-gradient(circle at 30% 30%, rgba(0,230,168,.5), transparent 70%); animation-delay: -6s; }
@keyframes floaty { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-16px) } }

.form-container, .forgot-container, .terms-main-container {
    width: 100%; max-width: 420px;
    min-width: 0;
    background: linear-gradient(180deg, rgba(18,30,38,.96), rgba(9,17,22,.98));
    border: 1px solid var(--a-line);
    border-radius: var(--a-radius-lg);
    box-shadow: 0 30px 70px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.03);
    padding: 26px 22px;
    position: relative;
    animation: authIn .5s cubic-bezier(.2,.7,.3,1) both;
    overflow-wrap: break-word;
}
.terms-main-container { max-width: 760px; text-align: start; }
.form-container::before, .forgot-container::before, .terms-main-container::before {
    content: ""; position: absolute; top: 0; inset-inline: 0; height: 3px;
    border-radius: var(--a-radius-lg) var(--a-radius-lg) 0 0;
    background: linear-gradient(90deg, transparent, var(--a-neon), var(--a-blue), transparent);
}
@keyframes authIn { from { opacity: 0; transform: translateY(18px) scale(.99); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .form-container, .forgot-container, .terms-main-container, .auth-orb, .cap-arrows { animation: none !important; } }

.auth-hero { text-align: center; margin-bottom: 18px; }
.auth-logo-badge {
    width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at 30% 25%, rgba(0,230,168,.24), rgba(255,255,255,.02));
    border: 1px solid var(--a-line);
}
.auth-logo-badge img { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 6px 16px rgba(0,230,168,.3)); }
.form-container h3, .forgot-title, .terms-title { color: #fff !important; font-weight: 800; margin: 0; }
.form-container h3 { font-size: 22px; }
.auth-hero .sub, .forgot-container .sub { color: var(--a-muted); font-size: 13.5px; margin: 6px 0 0; }
.forgot-title { font-size: 21px; }
.terms-title { font-size: 25px; text-align: center; line-height: 1.4; }
.terms-section-title { color: var(--a-neon); font-weight: 800; font-size: 16px; margin: 22px 0 8px; padding-inline-start: 11px; border-inline-start: 3px solid var(--a-neon); }
.terms-date { color: var(--a-muted); font-size: 13px; text-align: center; margin-bottom: 8px; }

.auth-tabs { display: flex; gap: 5px; padding: 5px; margin-bottom: 20px; background: var(--a-bg-2); border: 1px solid var(--a-line); border-radius: 15px; }
.auth-tabs a { flex: 1; text-align: center; padding: 11px 8px; border-radius: 11px; font-weight: 700; font-size: 14.5px; color: var(--a-muted); transition: background .15s, color .15s; }
.auth-tabs a.active { background: linear-gradient(135deg, var(--a-neon), var(--a-neon-2)); color: #04231b; box-shadow: 0 6px 16px rgba(0,230,168,.25); }

.fl { position: relative; margin-bottom: 15px; }
.fl-input {
    width: 100%; height: 58px;
    background: var(--a-bg-2); border: 1px solid var(--a-line); border-radius: var(--a-radius);
    color: #fff; font-size: 16px; caret-color: var(--a-neon);
    padding: 22px 14px 8px 44px;
    transition: border-color .15s, box-shadow .15s, background .15s;
    appearance: none; -webkit-appearance: none;
}
.fl--pw .fl-input { padding-right: 46px; }
html[dir="rtl"] .fl-input { padding-left: 14px; padding-right: 44px; }
html[dir="rtl"] .fl--pw .fl-input { padding-left: 46px; }
html[dir="rtl"] .fl-icon { left: auto; right: 15px; }
html[dir="rtl"] .fl-label { left: auto; right: 44px; }
html[dir="rtl"] .fl-eye { right: auto; left: 8px; }
.fl-input:focus { outline: none; border-color: var(--a-neon); background: var(--a-surface); box-shadow: 0 0 0 .2rem rgba(0,230,168,.14); }
.fl-input.is-invalid { border-color: var(--a-danger) !important; box-shadow: 0 0 0 .2rem rgba(255,107,125,.15) !important; }
.fl-icon { position: absolute; top: 50%; transform: translateY(-50%); left: 15px; right: auto; color: var(--a-muted); font-size: 15px; pointer-events: none; transition: color .15s; }
.fl:focus-within .fl-icon { color: var(--a-neon); }
.fl-label {
    position: absolute; left: 44px; right: auto; top: 50%; transform: translateY(-50%);
    color: var(--a-muted); font-size: 15px; pointer-events: none;
    transition: top .15s, font-size .15s, color .15s; transform-origin: center;
}
.fl-input:focus + .fl-label,
.fl-input:not(:placeholder-shown) + .fl-label { top: 15px; transform: translateY(0); font-size: 11.5px; color: var(--a-neon); }
.fl-input:not(:focus).is-invalid + .fl-label { color: var(--a-danger); }
.fl-input::placeholder { color: transparent; }

.fl-eye {
    position: absolute; top: 50%; transform: translateY(-50%); right: 8px; left: auto;
    width: 34px; height: 34px; border: none; background: transparent; color: var(--a-muted);
    border-radius: 9px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: color .15s;
}
.fl-eye:hover { color: var(--a-neon); }

input:-webkit-autofill, input:-webkit-autofill:focus, input:-webkit-autofill:hover {
    -webkit-box-shadow: 0 0 0 40px var(--a-bg-2) inset !important;
    -webkit-text-fill-color: #fff !important; caret-color: #fff;
    transition: background-color 5000s ease-in-out 0s;
}

.error-message { color: var(--a-danger); font-size: 12.5px; margin: 5px 4px 0; }

.pw-strength { margin: 8px 2px 0; display: none; }
.pw-strength.show { display: block; }
.pw-bar { height: 6px; border-radius: 6px; background: var(--a-line); overflow: hidden; }
.pw-bar > span { display: block; height: 100%; width: 0; border-radius: 6px; transition: width .25s, background .25s; }
.pw-strength .pw-note { font-size: 12px; margin-top: 5px; color: var(--a-muted); }
.pw-lv-1 .pw-bar > span { width: 33%; background: var(--a-danger); }
.pw-lv-2 .pw-bar > span { width: 66%; background: var(--a-warn); }
.pw-lv-3 .pw-bar > span { width: 100%; background: var(--a-neon); }
.pw-lv-1 .pw-note { color: var(--a-danger); }
.pw-lv-2 .pw-note { color: var(--a-warn); }
.pw-lv-3 .pw-note { color: var(--a-neon); }

.cap-wrap { margin-bottom: 15px; }
.cap-label { color: var(--a-muted); font-size: 13px; font-weight: 600; margin: 0 2px 7px; display: block; }
.cap-slider { user-select: none; -webkit-user-select: none; --cap-s: 1; }

.cap-box {
    display: flex; align-items: center; gap: 11px; cursor: pointer;
    height: 54px; padding: 0 14px; border-radius: var(--a-radius);
    background: var(--a-bg-2); border: 1px solid var(--a-line);
    transition: border-color .18s ease, background .18s ease;
}
.cap-box:hover { border-color: rgba(0,230,168,.34); }
.cap-box:focus-visible { outline: 2px solid var(--a-neon); outline-offset: 2px; }
.cap-mark {
    flex: 0 0 auto; width: 23px; height: 23px; border-radius: 7px;
    border: 2px solid var(--a-muted-2); background: transparent;
    display: flex; align-items: center; justify-content: center;
    color: #04231b; font-size: 12px; transition: all .2s ease;
}
.cap-mark i { opacity: 0; transform: scale(.5); transition: all .2s ease; }
.cap-box-txt { flex: 1 1 auto; color: var(--a-text); font-size: 14px; font-weight: 600; }
.cap-box-badge { flex: 0 0 auto; color: var(--a-muted-2); font-size: 15px; }
.cap-slider.done .cap-box { border-color: rgba(0,230,168,.5); background: rgba(0,230,168,.07); cursor: default; }
.cap-slider.done .cap-mark { border-color: var(--a-neon); background: var(--a-neon); }
.cap-slider.done .cap-mark i { opacity: 1; transform: scale(1); }
.cap-slider.done .cap-box-txt { color: var(--a-neon); }
.cap-slider.done .cap-box-badge { color: var(--a-neon); }

.cap-modal {
    position: fixed; inset: 0; z-index: 3000; padding: 16px;
    padding-top: max(16px, calc(16px + env(safe-area-inset-top, 0px)));
    padding-bottom: max(16px, calc(16px + env(safe-area-inset-bottom, 0px)));
    display: flex; align-items: center; justify-content: center;
    background: rgba(4,10,14,.74); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
    animation: capFade .18s ease;
}
.cap-modal[hidden] { display: none; }
@keyframes capFade { from { opacity: 0 } to { opacity: 1 } }
.cap-panel {
    width: 100%; max-width: 336px; padding: 13px;
    border-radius: var(--a-radius-lg); background: var(--a-surface);
    border: 1px solid var(--a-line); box-shadow: 0 24px 60px rgba(0,0,0,.55);
    animation: capPop .22s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes capPop { from { opacity: 0; transform: translateY(14px) scale(.96) } to { opacity: 1; transform: none } }
.cap-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.cap-head-txt { color: var(--a-text); font-size: 14px; font-weight: 700; }
.cap-head-acts { display: flex; align-items: center; gap: 7px; }
.cap-reload, .cap-close {
    width: 30px; height: 30px; border: 1px solid var(--a-line); border-radius: 9px;
    cursor: pointer; font-size: 13px; background: var(--a-bg-2); color: var(--a-muted);
    display: flex; align-items: center; justify-content: center;
}
.cap-reload:hover, .cap-close:hover { color: var(--a-neon); border-color: rgba(0,230,168,.34); }
.cap-slider.checking .cap-reload { opacity: .5; pointer-events: none; }

.cap-stage {
    position: relative; width: 100%; aspect-ratio: 272 / 140; direction: ltr;
    margin-bottom: 11px; border-radius: 12px; overflow: hidden;
    border: 1px solid var(--a-line); background: var(--a-bg-2) no-repeat 0 0 / 100% auto;
}
.cap-piece {
    position: absolute; left: 0; top: 0; display: block;
    width: calc(46px * var(--cap-s)); height: calc(46px * var(--cap-s));
    background-repeat: no-repeat;
    background-size: calc(272px * var(--cap-s)) auto;
    background-position: 0 calc(-140px * var(--cap-s));
    filter: drop-shadow(0 3px 7px rgba(0,0,0,.6));
    pointer-events: none;
}
.cap-pct {
    position: absolute; top: 7px; left: 7px; z-index: 3; pointer-events: none;
    padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 800;
    font-variant-numeric: tabular-nums; letter-spacing: .3px;
    background: rgba(4,12,17,.78); color: var(--a-neon);
    border: 1px solid rgba(0,230,168,.34);
    opacity: 0; transform: translateY(-4px); transition: opacity .18s ease, transform .18s ease;
}
.cap-slider.cap-load .cap-stage::before {
    content: ''; position: absolute; inset: 0; z-index: 2;
    background: var(--a-bg-2);
}
.cap-slider.cap-load .cap-stage::after {
    content: ''; position: absolute; z-index: 3;
    top: 50%; left: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px;
    border-radius: 50%; box-sizing: border-box;
    border: 2.5px solid rgba(255,255,255,.16);
    border-top-color: var(--a-neon);
    animation: capSpin .8s linear infinite;
}
@keyframes capSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .cap-slider.cap-load .cap-stage::after { animation: none; border-top-color: rgba(255,255,255,.4); }
}
.cap-pct.show { opacity: 1; transform: none; }
.cap-pct.bad { color: #ff8b7a; border-color: rgba(255,110,90,.4); }
.cap-slider.done .cap-stage { border-color: rgba(0,230,168,.5); }
.cap-track {
    position: relative; height: 54px; border-radius: var(--a-radius);
    background: var(--a-bg-2); border: 1px solid var(--a-line); overflow: hidden; direction: ltr;
}
.cap-fill { position: absolute; inset-block: 0; left: 0; width: 0; background: linear-gradient(90deg, rgba(0,230,168,.4), rgba(0,230,168,.15)); }
.cap-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--a-muted); font-size: 14px; font-weight: 600; pointer-events: none; }
.cap-arrows { animation: capArrow 1.4s ease-in-out infinite; }
@keyframes capArrow { 0%,100% { transform: translateX(-3px); opacity: .55 } 50% { transform: translateX(3px); opacity: 1 } }
.cap-done-text { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; gap: 8px; color: var(--a-neon); font-size: 14px; font-weight: 800; pointer-events: none; }
.cap-checking-text { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; gap: 8px; color: var(--a-muted); font-size: 14px; font-weight: 700; pointer-events: none; }
.cap-handle {
    position: absolute; top: 3px; left: 3px; width: 48px; height: 48px; z-index: 2;
    border: none; border-radius: 11px; color: #04231b; cursor: grab; touch-action: none;
    background: linear-gradient(135deg, var(--a-neon), var(--a-neon-2)); box-shadow: 0 6px 16px rgba(0,230,168,.32);
    display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.cap-slider.dragging .cap-handle { cursor: grabbing; }
.cap-slider.checking .cap-text { display: none; }
.cap-slider.checking .cap-checking-text { display: flex; }
.cap-slider.checking .cap-handle { opacity: .7; cursor: wait; }
.cap-slider.done .cap-text, .cap-slider.done .cap-checking-text { display: none; }
.cap-slider.done .cap-done-text { display: flex; }
.cap-slider.done .cap-handle { background: var(--a-neon); }
.cap-slider.done .cap-track { border-color: rgba(0,230,168,.5); }
.cap-slider.shake .cap-track { animation: capShake .4s ease; border-color: rgba(255,99,99,.55); }
@keyframes capShake { 0%,100% { transform: translateX(0) } 25% { transform: translateX(-5px) } 55% { transform: translateX(5px) } 80% { transform: translateX(-2px) } }
@media (prefers-reduced-motion: reduce) {
    .cap-slider.shake .cap-track { animation: none; }
    .cap-modal, .cap-panel { animation: none; }
}
body.cap-lock { overflow: hidden; }

.fl-input:-webkit-autofill,
.fl-input:-webkit-autofill:hover,
.fl-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--a-surface-2, #0b141a) inset !important;
    box-shadow: 0 0 0 1000px var(--a-surface-2, #0b141a) inset !important;
    -webkit-text-fill-color: #e8f1f5 !important;
    caret-color: #e8f1f5;
    transition: background-color 99999s ease-in-out 0s;
}

.btn { display:inline-block; font-weight:400; text-align:center; cursor:pointer; user-select:none; border:1px solid transparent; padding:.375rem .75rem; font-size:1rem; line-height:1.5; border-radius:.375rem; transition:color .15s,background-color .15s,border-color .15s,box-shadow .15s; }
.btn:focus { outline:0; box-shadow:0 0 0 .2rem rgba(0,230,168,.25); }
.btn:disabled { opacity:.65; pointer-events:none; }
.p-0 { padding:0 !important; }
.text-center { text-align:center !important; }

.btn-primary, .btn-success {
    background: linear-gradient(135deg, var(--a-neon), var(--a-neon-2)) !important;
    color: #04231b !important; border: none !important; border-radius: 14px; padding: 15px;
    font-weight: 800; font-size: 16px; box-shadow: 0 12px 26px rgba(0,230,168,.26);
    transition: filter .12s, transform .1s, box-shadow .12s; width: 100%;
}
.btn-primary:hover, .btn-success:hover { filter: brightness(1.07); transform: translateY(-1px); color: #04231b !important; box-shadow: 0 16px 30px rgba(0,230,168,.34); }
.btn-primary:active, .btn-success:active { transform: translateY(0); }

.btn-warning {
    background: linear-gradient(135deg, var(--a-neon), var(--a-neon-2)) !important;
    color: #04231b !important; border: none !important; border-radius: 14px; padding: 15px;
    font-weight: 800; font-size: 16px; width: 100%; box-shadow: 0 12px 26px rgba(0,230,168,.26);
    transition: filter .12s, transform .1s, box-shadow .12s;
}
.btn-warning:hover { filter: brightness(1.07); transform: translateY(-1px); color: #04231b !important; box-shadow: 0 16px 30px rgba(0,230,168,.34); }
.btn-warning:active { transform: translateY(0); }
.btn-info, .btn-outline-info { background: var(--a-surface-2) !important; color: var(--a-info) !important; border: 1.5px solid rgba(79,195,255,.5) !important; border-radius: 12px; font-weight: 700; }
.btn-info:hover, .btn-outline-info:hover { border-color: var(--a-info) !important; filter: brightness(1.1); }
.btn-link { color: var(--a-neon) !important; font-weight: 700; }
.btn-link:hover { color: var(--a-neon-2) !important; }

.social-row { display: grid; gap: 10px; }
.btn-social { display: flex; align-items: center; justify-content: center; gap: 11px; width: 100%; border-radius: 14px; padding: 13px 14px; font-weight: 700; font-size: 15px; cursor: pointer; border: 1px solid var(--a-line); transition: transform .1s, filter .12s, border-color .15s; text-decoration: none; }
.btn-social:active { transform: translateY(1px); }
.btn-google { background: #fff; color: #1f2937; border-color: #fff; }
.btn-google:hover { filter: brightness(.97); color: #1f2937; }
.btn-google svg { width: 20px; height: 20px; flex: 0 0 auto; }
.btn-telegram { background: linear-gradient(135deg, #2aa9e0, #229ed9); color: #fff; border-color: transparent; }
.btn-telegram:hover { filter: brightness(1.06); color: #fff; }
.btn-telegram i { font-size: 19px; }

.auth-divider { display: flex; align-items: center; gap: 14px; margin: 18px 0; color: var(--a-muted-2); font-size: 12px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--a-line), transparent); }

.form-check { display: flex; align-items: flex-start; gap: 9px; padding: 0 !important; margin: 0; min-width: 0; }
.form-check-input {
    margin: 1px 0 0 !important; margin-inline: 0 !important; float: none !important;
    width: 18px; height: 18px; flex: 0 0 auto;
    background-color: var(--a-bg-2); border: 1px solid var(--a-line);
}
.form-check-input:checked { background-color: var(--a-neon); border-color: var(--a-neon); }
.form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(0,230,168,.14); border-color: var(--a-neon); }
.form-check-label { color: var(--a-muted); font-size: 13.5px; margin: 0; flex: 1 1 auto; min-width: 0; line-height: 1.5; }
.form-check-label .btn-link { white-space: normal; }
.terms-check .form-check-label { font-size: 12.5px; line-height: 1.7; }
.terms-link { color: var(--a-neon); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.terms-link:hover { color: var(--a-neon-2); }
@media (max-width: 480px) { .terms-check .form-check-label { font-size: 12px; } }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.auth-row .form-check { flex: 1 1 auto; }
.auth-row > .btn-link { flex: 0 0 auto; white-space: nowrap; }

.alert { border: 1px solid rgba(255,107,125,.3); border-radius: 12px; background: rgba(255,107,125,.12); color: var(--a-danger); padding: 12px 14px; text-align: center; font-weight: 700; font-size: 13.5px; margin-bottom: 15px; }
.alert-success { background: rgba(0,230,168,.12) !important; border-color: rgba(0,230,168,.3) !important; color: var(--a-neon) !important; }
.alert-danger { background: rgba(255,107,125,.12) !important; border-color: rgba(255,107,125,.3) !important; color: var(--a-danger) !important; }

.otp-wrap { display: flex; gap: 8px; justify-content: center; direction: ltr; margin: 6px 0 2px; }
.otp-box { flex: 1 1 0; min-width: 0; max-width: 52px; height: 56px; text-align: center; font-size: 22px; font-weight: 800; color: #fff; background: var(--a-bg-2); border: 1px solid var(--a-line); border-radius: 12px; caret-color: var(--a-neon); transition: border-color .15s, box-shadow .15s, background .15s; }
.otp-box:focus { outline: none; border-color: var(--a-neon); background: var(--a-surface); box-shadow: 0 0 0 .2rem rgba(0,230,168,.14); }
.otp-box.filled { border-color: rgba(0,230,168,.5); }

.resend-line { text-align: center; font-size: 13px; color: var(--a-muted); margin-top: 14px; }
.resend-line button { color: var(--a-neon); font-weight: 700; background: none; border: none; cursor: pointer; padding: 0; }
.resend-line button:disabled { color: var(--a-muted-2); cursor: default; }

.forgot-container .user-info { background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 12px; padding: 12px 14px; color: var(--a-text); margin-bottom: 16px; }
.forgot-container .user-info span { color: var(--a-neon); font-weight: 700; }
.fg-lock { display: flex; align-items: flex-start; gap: 9px; text-align: start; margin-top: 14px; padding: 11px 13px; border-radius: 12px; font-size: 12.5px; line-height: 1.85; color: #f0c26a; background: rgba(240, 180, 41, .07); border: 1px solid rgba(240, 180, 41, .28); }
.fg-lock i { flex: 0 0 auto; margin-top: 3px; color: #f0b429; }
.support-link { display: inline-flex; align-items: center; gap: 6px; color: var(--a-muted); font-size: 13.5px; }
.support-link:hover { color: var(--a-neon); }

.auth-foot-line { text-align: center; margin-top: 18px; color: var(--a-muted); font-size: 14px; }

.terms-list { padding-inline-start: 20px; margin: 0; }
.terms-list li { color: var(--a-text); font-size: 14px; line-height: 1.95; padding: 3px 0; }
.terms-list li::marker { color: var(--a-neon); }
.terms-main-container p { color: var(--a-text); line-height: 1.95; font-size: 14.5px; }

@media (min-width: 992px) {
    .auth-shell { grid-template-columns: 1.05fr .95fr; }
    .auth-aside { display: flex; }
    .form-container, .forgot-container { max-width: 430px; padding: 32px 30px; }
}
@media (min-width: 620px) and (max-width: 991.98px) {
    .form-container, .forgot-container { padding: 30px 28px; }
    .terms-main-container { padding: 34px 38px; }
}
@media (max-width: 480px) {
    .form-container, .forgot-container, .terms-main-container { padding: 22px 16px; border-radius: 20px; }
    .form-container h3 { font-size: 20px; }
    .terms-title { font-size: 21px; }
    .fl-input { height: 56px; font-size: 16px; }
    .btn-primary, .btn-success, .btn-warning { font-size: 15px; padding: 14px; }
    .btn-social { font-size: 14px; padding: 12px; }
    .terms-list li, .terms-main-container p { font-size: 13.6px; }
}
@media (max-width: 380px) {
    .form-container, .forgot-container, .terms-main-container { padding: 18px 13px; }
    .auth-tabs a { font-size: 13.5px; padding: 10px 6px; }
    .otp-wrap { gap: 5px; }
    .otp-box { height: 48px; font-size: 18px; border-radius: 10px; }
    .cap-handle { width: 44px; height: 44px; }
    .auth-logo-badge { width: 62px; height: 62px; }
}
@media (max-height: 620px) {
    .auth-main, .auth-page { padding-top: max(50px, calc(10px + env(safe-area-inset-top, 0px))); padding-bottom: 14px; }
    .auth-hero { margin-bottom: 12px; }
    .auth-logo-badge { width: 56px; height: 56px; margin-bottom: 8px; border-radius: 16px; }
    .auth-logo-badge img { width: 38px; height: 38px; }
    .form-container, .forgot-container { padding-top: 18px; padding-bottom: 18px; }
    .fl { margin-bottom: 11px; }
    .fl-input { height: 52px; }
    .cap-track { height: 48px; }
    .cap-handle { width: 42px; height: 42px; }
    .otp-box { height: 48px; }
}

[dir="rtl"] .auth-aside__sub, [dir="rtl"] .auth-features li { letter-spacing: 0; }

.auth-legal {
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: 4px 10px;
    margin-top: 20px; padding-top: 16px;
    border-top: 1px solid var(--a-line-soft);
}
.auth-legal a {
    color: var(--a-muted);
    font-size: 12px; font-weight: 600;
    text-decoration: none; letter-spacing: .1px;
    opacity: .78; transition: color .15s ease, opacity .15s ease;
    padding: 2px 2px;
}
.auth-legal a:hover, .auth-legal a:focus-visible {
    color: var(--a-neon); opacity: 1; text-decoration: underline; text-underline-offset: 3px;
}
.auth-legal-sep { color: var(--a-line); font-size: 12px; opacity: .8; user-select: none; }

.site-foot {
    position: relative; z-index: 2;
    background: linear-gradient(180deg, rgba(9, 17, 22, .55), rgba(6, 11, 15, .92));
    border-top: 1px solid var(--a-line);
    padding: 34px 18px 0;
}
.site-foot__in {
    max-width: 1080px; margin: 0 auto;
    display: grid; gap: 26px 34px;
    grid-template-columns: 1fr;
    text-align: start;
}
.site-foot__col { min-width: 0; }
.site-foot__brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.site-foot__brand img { width: 34px; height: 34px; border-radius: 10px; object-fit: contain; background: rgba(255,255,255,.04); padding: 4px; }
.site-foot__brand span { color: var(--a-text); font-size: 16.5px; font-weight: 800; letter-spacing: .2px; }
.site-foot__about {
    margin: 12px 0 0; color: var(--a-muted);
    font-size: 13px; line-height: 2; max-width: 44ch;
}
.site-foot__h {
    position: relative; margin: 0 0 16px; padding-bottom: 9px;
    color: var(--a-text); font-size: 14.5px; font-weight: 800; letter-spacing: .2px;
}
.site-foot__h::after {
    content: ""; position: absolute; bottom: 0; inset-inline-start: 0;
    width: 34px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, var(--a-neon), rgba(0, 230, 168, 0));
}
.site-foot__links, .site-foot__cts { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.site-foot__links a {
    display: inline-flex; align-items: center; gap: 9px;
    color: var(--a-muted); font-size: 13px; font-weight: 600; text-decoration: none;
    transition: color .15s ease, transform .15s ease;
}
.site-foot__links a::before {
    content: ""; width: 5px; height: 5px; border-radius: 2px; flex: 0 0 auto;
    background: var(--a-neon); opacity: .75; transition: opacity .15s ease;
}
.site-foot__links a:hover, .site-foot__links a:focus-visible { color: var(--a-text); }
.site-foot__links a:hover::before { opacity: 1; }
.site-foot__apps a::before { display: none; }
.site-foot__apps a i { width: 16px; text-align: center; color: var(--a-neon); font-size: 14px; flex: 0 0 auto; }
.site-foot__apps a .fa-telegram { color: #2aabee; }
.site-foot__cts li { display: flex; align-items: flex-start; gap: 11px; }
.site-foot__ic {
    flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px;
    display: grid; place-items: center; font-size: 12.5px;
    color: var(--a-neon); background: rgba(0, 230, 168, .08);
    border: 1px solid rgba(0, 230, 168, .2);
}
.site-foot__cts a, .site-foot__cts span:not(.site-foot__ic) {
    color: var(--a-muted); font-size: 13px; font-weight: 600; line-height: 1.75;
    padding-top: 4px; text-decoration: none; word-break: break-word; unicode-bidi: isolate;
}
.site-foot__cts a:hover, .site-foot__cts a:focus-visible { color: var(--a-neon); }
.site-foot__bar {
    max-width: 1080px; margin: 26px auto 0;
    padding: 15px 0 max(15px, env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--a-line-soft);
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 6px 16px;
    color: var(--a-muted-2); font-size: 12px; line-height: 1.9;
}
@media (min-width: 700px) {
    .site-foot { padding-top: 40px; }
    .site-foot__in { grid-template-columns: 1fr 1fr 1fr; }
    .site-foot__col--brand, .site-foot__col--contact { grid-column: 1 / -1; }
}
@media (min-width: 980px) {
    .site-foot__in { grid-template-columns: 1.4fr .8fr .8fr .9fr 1.25fr; }
    .site-foot__col--brand { grid-column: 1; }
    .site-foot__col--contact { grid-column: auto; }
}
@media (max-width: 699.98px) {
    .site-foot__in { grid-template-columns: 1fr 1fr; }
    .site-foot__col--brand, .site-foot__col--contact { grid-column: 1 / -1; }
}
@media (max-width: 380px) {
    .site-foot { padding: 26px 14px 0; }
    .site-foot__in { grid-template-columns: 1fr; gap: 22px; }
    .auth-legal { gap: 3px 8px; margin-top: 16px; padding-top: 13px; }
    .auth-legal a, .auth-legal-sep { font-size: 11.5px; }
}

/* ---- invite-only gate ---- */
.inv-hint {
    color: var(--a-muted-2); font-size: 12px; font-weight: 600;
    line-height: 1.8; margin: -8px 0 14px; padding-inline-start: 2px;
}
.fl-input.inv-code { direction: ltr; text-align: start; letter-spacing: .5px; }
html[dir="rtl"] .fl-input.inv-code { text-align: right; }
