/* صفحه‌ی ورود نورا — سبک شیشه‌ای (glassmorphism) با رنگ‌های لوگوی نورا */
:root {
    --auth-ink: #16213f;
    --auth-muted: #66738f;
    --auth-faint: #9aa6bd;
    --auth-border: rgba(255, 255, 255, .7);
    --nora-purple: #8e2a91;
    --nora-violet: #6c4fb3;
    --nora-blue: #3b6fd8;
    --nora-teal: #17a9a0;
    --nora-cyan: #22b1e3;
    --nora-navy: #1f3a80;
    --auth-grad: linear-gradient(135deg, #6c4fb3 0%, #3b6fd8 55%, #22b1e3 100%);
}

html, body { height: 100%; }

.auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: "iranSans", sans-serif;
    color: var(--auth-ink);
    background:
        radial-gradient(900px 600px at 85% 10%, rgba(108, 79, 179, .22), transparent 60%),
        radial-gradient(800px 600px at 10% 90%, rgba(34, 177, 227, .2), transparent 60%),
        radial-gradient(700px 500px at 60% 60%, rgba(142, 42, 145, .1), transparent 60%),
        #eef1f9;
    background-attachment: fixed;
    overflow-x: hidden;
}

.auth-shell { display: flex; min-height: 100vh; width: 100%; box-sizing: border-box; padding: 18px 0; }

/* ---------- پنل فرم: کارت شیشه‌ای ---------- */
.auth-form-panel {
    flex: 0 0 46%;
    max-width: 46%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    position: relative;
    z-index: 2;
}

.auth-form-inner {
    width: 100%;
    max-width: 430px;
    padding: 2.4rem 2.2rem 2rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, .62);
    border: 1px solid var(--auth-border);
    box-shadow: 0 30px 70px -30px rgba(31, 42, 90, .45), inset 0 1px 0 rgba(255, 255, 255, .9);
    backdrop-filter: blur(22px) saturate(170%);
    -webkit-backdrop-filter: blur(22px) saturate(170%);
}

.auth-brand-mark { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.8rem; }
.auth-logo { width: 64px; height: auto; filter: drop-shadow(0 10px 18px rgba(108, 79, 179, .25)); }
.auth-brand-text { display: flex; flex-direction: column; line-height: 1.6; }
.auth-brand-title { font-size: 1rem; font-weight: 800; color: var(--auth-ink); }
.auth-brand-sub { font-size: .78rem; color: var(--auth-muted); }

.auth-title { font-size: 1.6rem; font-weight: 900; margin-bottom: .4rem; color: var(--auth-ink); letter-spacing: -.3px; }
.auth-subtitle { font-size: .86rem; color: var(--auth-muted); margin-bottom: 1.8rem; line-height: 1.9; }

.auth-label { display: block; font-size: .82rem; font-weight: 700; color: var(--auth-ink); margin-bottom: .45rem; }

.auth-input-wrap { position: relative; }
.auth-input-icon {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    color: var(--auth-faint);
    font-size: .95rem;
    pointer-events: none;
    z-index: 2;
}
.auth-input {
    height: 50px;
    border-radius: 14px !important;
    border: 1px solid rgba(214, 222, 238, .9) !important;
    background: rgba(255, 255, 255, .72) !important;
    padding-right: 42px !important;
    font-size: .9rem;
    color: var(--auth-ink);
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.auth-input:focus {
    background: #fff !important;
    border-color: var(--nora-blue) !important;
    box-shadow: 0 0 0 4px rgba(59, 111, 216, .14) !important;
    outline: none;
}
.auth-input-toggle {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--auth-faint);
    width: 34px;
    height: 34px;
    border-radius: 10px;
    z-index: 2;
    /* span است؛ بدون flex اندازه‌ی ۳۴px اعمال نمی‌شد و آیکون بالای فیلد می‌نشست */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    cursor: pointer;
}
.auth-input-toggle i { line-height: 1; }
.auth-input-toggle:hover { background: rgba(59, 111, 216, .08); color: var(--nora-blue); }

/* select2 سال مالی هم شیشه‌ای */
.auth-form .select2-container--default .select2-selection--single {
    height: 50px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(214, 222, 238, .9) !important;
    background: rgba(255, 255, 255, .72) !important;
}
.auth-form .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 48px !important; padding-right: 42px !important; }
.auth-form .select2-container--default .select2-selection--single .select2-selection__arrow { height: 48px !important; }

.auth-error { display: block; margin-top: .35rem; font-size: .78rem; color: #e5484d; }
.auth-field-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; }
.auth-remember { display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--auth-muted); cursor: pointer; }
.auth-remember input { width: 18px; height: 18px; accent-color: var(--nora-blue); }

.auth-submit {
    height: 52px;
    border-radius: 14px;
    border: none;
    background: var(--auth-grad);
    background-size: 160% 160%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    font-size: .98rem;
    box-shadow: 0 16px 30px -14px rgba(59, 111, 216, .85);
    transition: background-position .4s ease, transform .15s ease, box-shadow .2s ease;
}
.auth-submit:hover { background-position: 100% 0; transform: translateY(-1px); box-shadow: 0 20px 36px -14px rgba(59, 111, 216, .9); }
.auth-submit:active { transform: translateY(1px); }

.auth-footer { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(214, 222, 238, .7); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.auth-version { font-size: .74rem; color: var(--auth-faint); direction: ltr; }
.auth-credit { display: flex; align-items: center; gap: .5rem; font-size: .74rem; color: var(--auth-muted); }
.auth-credit-logo { width: auto; height: 1.05cm; object-fit: contain; }

/* ---------- پنل برند نورا ---------- */
.auth-brand-panel {
    flex: 1 1 auto;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 0 18px;
    border-radius: 32px;
    background: linear-gradient(150deg, #10183a 0%, #172660 45%, #1b3678 75%, #12305e 100%);
    box-shadow: 0 40px 80px -40px rgba(16, 24, 58, .8);
    isolation: isolate;
}

/* هاله‌های رنگی لوگو */
.auth-orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .75; z-index: -1; animation: auth-drift 16s ease-in-out infinite; }
.auth-orb.o1 { width: 420px; height: 420px; top: -120px; right: -80px; background: radial-gradient(circle, rgba(142, 42, 145, .85), transparent 65%); }
.auth-orb.o2 { width: 460px; height: 460px; bottom: -160px; left: -120px; background: radial-gradient(circle, rgba(34, 177, 227, .7), transparent 65%); animation-delay: -5s; }
.auth-orb.o3 { width: 320px; height: 320px; top: 40%; left: 35%; background: radial-gradient(circle, rgba(23, 169, 160, .45), transparent 65%); animation-delay: -10s; }

.auth-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 40px 40px;
    -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 75%);
    mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 75%);
}

/* لوزی‌های شیشه‌ای شناور (الهام از نماد نورا) */
.auth-diamond {
    position: absolute;
    z-index: -1;
    border-radius: 22%;
    transform: rotate(45deg);
    background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03));
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: auth-float 9s ease-in-out infinite;
}
.auth-diamond.d1 { width: 90px; height: 90px; top: 12%; left: 10%; }
.auth-diamond.d2 { width: 54px; height: 54px; bottom: 16%; right: 12%; animation-delay: -3s; }
.auth-diamond.d3 { width: 34px; height: 34px; top: 22%; right: 22%; animation-delay: -6s; background: linear-gradient(135deg, rgba(142, 42, 145, .55), rgba(34, 177, 227, .35)); }

.auth-brand-content { position: relative; z-index: 2; color: #fff; padding: 2.4rem 2.8rem; max-width: 620px; text-align: center; }

.auth-brand-logo { display: flex; flex-direction: column; align-items: center; gap: .8rem; margin-bottom: 1.4rem; }
.auth-brand-mark-img { width: 104px; height: auto; filter: drop-shadow(0 22px 40px rgba(34, 177, 227, .35)); animation: auth-float-y 6s ease-in-out infinite; }
.auth-brand-word { width: 190px; height: auto; opacity: .96; }
.auth-brand-tag { font-size: .72rem; letter-spacing: .38em; color: rgba(255, 255, 255, .62); direction: ltr; }

.auth-brand-headline { font-size: 1.75rem; font-weight: 900; margin-bottom: .6rem; letter-spacing: -.3px; }
.auth-brand-headline span { background: linear-gradient(90deg, #c08cff, #6ac8ff 55%, #5fe0d0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-brand-desc { font-size: .9rem; color: rgba(255, 255, 255, .78); line-height: 1.95; margin: 0 auto 1.5rem; max-width: 470px; }

.auth-feature-list { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; max-width: 560px; }
.auth-feature-list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .55rem;
    padding: .8rem .5rem .75rem;
    border-radius: 16px;
    font-size: .78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .9);
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform .2s ease, background .2s ease;
}
.auth-feature-list li:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .12); }
.auth-feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(135deg, rgba(142, 42, 145, .75), rgba(59, 111, 216, .75) 55%, rgba(34, 177, 227, .75));
    box-shadow: 0 10px 20px -10px rgba(34, 177, 227, .8);
}

.auth-brand-by { display: inline-flex; align-items: center; gap: .7rem; margin-top: 1.5rem; padding: .55rem 1rem; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .7); font-size: .76rem; text-decoration: none; transition: background .2s; }
.auth-brand-by:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.auth-brand-by img { height: 26px; width: auto; }

@keyframes auth-drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, -20px) scale(1.08); } }
@keyframes auth-float { 0%, 100% { transform: rotate(45deg) translateY(0); } 50% { transform: rotate(45deg) translateY(-14px); } }
@keyframes auth-float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .auth-orb, .auth-diamond, .auth-brand-mark-img { animation: none; } }

/* ---------- تبلت و گوشی ---------- */
@media (max-width: 1199px) {
    .auth-feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
    .auth-shell { flex-direction: column; padding: 0; }
    .auth-brand-panel { display: none; }
    .auth-body {
        background:
            radial-gradient(500px 400px at 100% 0%, rgba(108, 79, 179, .3), transparent 60%),
            radial-gradient(500px 400px at 0% 100%, rgba(34, 177, 227, .28), transparent 60%),
            #eef1f9;
        background-attachment: fixed;
    }
    .auth-form-panel { flex: 1 1 100%; max-width: 100%; min-height: 100vh; padding: 1.5rem 1rem; }
    .auth-form-inner { padding: 2rem 1.4rem 1.6rem; border-radius: 24px; }
    .auth-footer { flex-direction: column; }
}

/* شعار «هوشمندی در صنعت» با همان فونت لوگوی پیشرو تک (تصویر به‌عنوان ماسک، با گرادیان رنگ‌های نورا) */
.auth-tagline {
    display: block;
    width: min(360px, 82%);
    aspect-ratio: 756 / 99;
    margin: .4rem auto 0;
    background: linear-gradient(90deg, #c08cff 0%, #6ac8ff 55%, #5fe0d0 100%);
    -webkit-mask: url(../images/brand/tagline-hoshmandi.png) no-repeat center / contain;
    mask: url(../images/brand/tagline-hoshmandi.png) no-repeat center / contain;
    filter: drop-shadow(0 8px 24px rgba(106, 200, 255, .25));
}
.auth-footer { justify-content: center; }
.auth-brand-logo { margin-bottom: 1.6rem; }
.auth-brand-mark-img { width: 128px; }
.auth-brand-word { width: 220px; }
.auth-brand-by { margin-top: 2.4rem; }

/* ---------- هم‌ترازی دو کارت: بالا و پایین یکسان، فرم وسط کارت خودش ---------- */
@media (min-width: 992px) {
    .auth-shell { height: 100vh; min-height: 620px; padding: 18px 0; align-items: stretch; }
    .auth-form-panel { padding: 0 18px; align-items: stretch; }
    .auth-form-inner {
        max-width: 480px;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 2.2rem 2.6rem;
        overflow-y: auto;
        scrollbar-width: thin;
    }
    .auth-form-inner > * { width: 100%; max-width: 400px; margin-inline: auto; }
    .auth-brand-panel { margin: 0 0 0 18px; }
}

/* شعار بزرگ‌تر */
.auth-tagline { width: min(420px, 86%); margin-top: .8rem; }

/* ---------- چیدمان تمام‌صفحه (مثل قبل)، بدون اسکرول ---------- */
@media (min-width: 992px) {
    .auth-shell {
        height: 100vh;
        min-height: 600px;
        padding: 18px 0;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
    }
    .auth-brand-panel { flex: 1 1 auto; margin: 0 0 0 18px; height: auto; }
    .auth-form-panel { flex: 0 0 42%; max-width: 42%; padding: 0 18px; align-items: stretch; }
    .auth-form-inner {
        width: 100%;
        max-width: 500px;
        height: 100%;
        margin-inline: auto;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 1.6rem 2.6rem;
    }
    .auth-form-inner > * { width: 100%; max-width: 400px; margin-inline: auto; }
}

/* فرم فشرده‌تر تا در کارت کوچک‌تر بدون اسکرول جا شود */
.auth-brand-mark { margin-bottom: 1.1rem; }
.auth-logo { width: 54px; }
.auth-title { font-size: 1.4rem; margin-bottom: .25rem; }
.auth-subtitle { font-size: .8rem; margin-bottom: 1.2rem; line-height: 1.8; }
.auth-form .mb-3 { margin-bottom: .8rem !important; }
.auth-label { margin-bottom: .3rem; font-size: .8rem; }
.auth-input { height: 46px; }
.auth-form .select2-container--default .select2-selection--single { height: 46px !important; }
.auth-form .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 44px !important; }
.auth-form .select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px !important; }
.auth-field-row { margin-bottom: 1rem; }
.auth-submit { height: 48px; }
.auth-footer { margin-top: 1.1rem; padding-top: .8rem; }

/* پنل برند متناسب با کارت کوچک‌تر */
.auth-brand-mark-img { width: 128px; }
.auth-brand-word { width: 230px; }
.auth-tagline { width: min(400px, 80%); }
.auth-brand-by { margin-top: 1.8rem; }
.auth-diamond.d1 { width: 70px; height: 70px; }

/* ================= انیمیشن ورود ================= */
.auth-form-inner { position: relative; }
.auth-submit { position: relative; overflow: hidden; isolation: isolate; }
.auth-submit-label, .auth-submit-busy { display: inline-flex; align-items: center; gap: .55rem; transition: opacity .25s ease, transform .25s ease; }
.auth-submit-busy { position: absolute; inset: 0; justify-content: center; opacity: 0; transform: translateY(12px); }

/* موج کلیک */
.auth-ripple {
    position: absolute;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
    pointer-events: none;
    z-index: -1;
    animation: auth-ripple .65s ease-out forwards;
}

/* حالت «در حال ورود» */
.auth-submit.is-busy { cursor: progress; pointer-events: none; background-size: 200% 100%; animation: auth-grad-move 1.6s linear infinite; }
.auth-submit.is-busy .auth-submit-label { opacity: 0; transform: translateY(-12px); }
.auth-submit.is-busy .auth-submit-busy { opacity: 1; transform: none; }
.auth-submit.is-busy::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .35) 50%, transparent 80%);
    transform: translateX(-100%);
    animation: auth-shine 1.1s ease-in-out infinite;
}
.auth-spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: auth-rotate .7s linear infinite; }
.auth-form.is-busy .auth-input { opacity: .7; }

/* لایه‌ی بارگذاری روی کارت */
.auth-loading {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    border-radius: inherit;
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
}
.auth-form-inner.is-loading .auth-loading { opacity: 1; visibility: visible; }
.auth-loading-ring {
    position: relative;
    width: 108px;
    height: 108px;
    margin-bottom: .6rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
}
.auth-loading-ring::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient(from 0deg, #8e2a91, #6c4fb3, #3b6fd8, #22b1e3, transparent 75%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: auth-rotate 1.1s linear infinite;
}
.auth-loading-ring img { width: 58px; height: auto; animation: auth-pulse 1.4s ease-in-out infinite; }
.auth-loading b { font-size: 1.05rem; font-weight: 900; color: var(--auth-ink); }
.auth-loading small { font-size: .8rem; color: var(--auth-muted); }
.auth-loading-dots { display: inline-flex; gap: 5px; margin-top: .3rem; }
.auth-loading-dots i { width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, #6c4fb3, #22b1e3); animation: auth-dot 1.2s ease-in-out infinite; }
.auth-loading-dots i:nth-child(2) { animation-delay: .15s; }
.auth-loading-dots i:nth-child(3) { animation-delay: .3s; }

@keyframes auth-ripple { to { transform: scale(40); opacity: 0; } }
@keyframes auth-shine { to { transform: translateX(100%); } }
@keyframes auth-grad-move { to { background-position: -200% 0; } }
@keyframes auth-rotate { to { transform: rotate(360deg); } }
@keyframes auth-pulse { 50% { transform: scale(.9); opacity: .8; } }
@keyframes auth-dot { 0%, 80%, 100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-6px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    .auth-submit.is-busy, .auth-submit.is-busy::after, .auth-loading-ring::before, .auth-loading-ring img, .auth-loading-dots i { animation: none; }
}

/* دسکتاپ: صفحه اسکرول نخورد. انیمیشن ورود کارت (fadeInUp) لحظه‌ای کارت را پایین می‌برد و اگر فوکوس/پرکردن خودکار مرورگر
   در همان لحظه صفحه را اسکرول می‌کرد، بعد از انیمیشن صفحه اسکرول‌شده می‌ماند و پایین کارت بیرون می‌زد */
@media (min-width: 992px) and (min-height: 600px) {
    html, body.auth-body { overflow: hidden; }
    /* کارت هنگام انیمیشن از قاب بیرون نزند؛ clip برخلاف hidden ناحیه‌ی اسکرول نمی‌سازد و سایه‌ها هم دیده می‌شوند */
    .auth-shell { overflow: clip; }
}

/* لپ‌تاپ‌های کم‌ارتفاع (۷۶۸ و کمتر): فاصله‌ها فشرده‌تر تا فرم و سازنده بدون بریدگی در کارت جا شوند */
@media (min-width: 992px) and (max-height: 760px) {
    .auth-form-inner { padding-top: 1.1rem !important; padding-bottom: 1.1rem !important; }
    .auth-brand-mark { margin-bottom: .6rem; }
    .auth-subtitle { margin-bottom: .8rem; }
    .auth-form .mb-3 { margin-bottom: .55rem !important; }
    .auth-input, .auth-form .select2-container--default .select2-selection--single { height: 44px !important; }
}

/* صفحه‌های بلند: کارت‌ها حداکثر ۷۸۰px و وسط صفحه، تا اگر نوار وظیفه‌ی ویندوز (مخفی‌شونده) یا نوار پایین مرورگر
   روی پایین پنجره افتاد، چیزی از کارت پوشانده نشود */
@media (min-width: 992px) and (min-height: 860px) {
    .auth-shell { align-items: center; }
    .auth-form-panel, .auth-brand-panel { height: min(calc(100vh - 36px - var(--os-bottom-inset, 0px)), 780px); align-self: center; }
}

/* «مرا بخاطر بسپار»: سوییچ به رنگ نورا */
.auth-remember { display: inline-flex; align-items: center; gap: .7rem; padding: .35rem .2rem; cursor: pointer; user-select: none; }
.auth-remember input[type="checkbox"] {
    -webkit-appearance: none; appearance: none; flex: none; position: relative; margin: 0;
    width: 42px; height: 24px; border-radius: 999px; background: #dfe4ef; border: 1px solid #cfd6e6;
    box-shadow: inset 0 1px 2px rgba(27, 36, 82, .12); cursor: pointer; outline: 0;
    transition: background-color .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.auth-remember input[type="checkbox"]::before {
    content: ""; position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%;
    background: #fff; box-shadow: 0 2px 5px rgba(27, 36, 82, .3); transition: right .22s cubic-bezier(.2, .8, .2, 1);
}
.auth-remember input[type="checkbox"]:checked { background: linear-gradient(90deg, #6c4fb3, #3b6fd8); border-color: transparent; }
.auth-remember input[type="checkbox"]:checked::before { right: 20px; }
.auth-remember input[type="checkbox"]:focus-visible { box-shadow: 0 0 0 4px rgba(77, 121, 246, .2); }
.auth-remember-text { display: flex; flex-direction: column; line-height: 1.5; }
.auth-remember-text b { font-size: .82rem; font-weight: 700; color: var(--auth-ink, #18223d); }
.auth-remember-text small { font-size: .7rem; color: var(--auth-faint, #a3adc2); }
.auth-remember:hover input[type="checkbox"]:not(:checked) { border-color: #b9c4dc; }
@media (prefers-reduced-motion: reduce) { .auth-remember input[type="checkbox"], .auth-remember input[type="checkbox"]::before { transition: none; } }

/* پایین پنجره زیر نوار وظیفه‌ی ویندوز (js/screen-inset.js): قاب فقط تا جای دیده‌شده */
@media (min-width: 992px) {
    .auth-shell { height: calc(100vh - var(--os-bottom-inset, 0px)); }
}
