/* ── Auth pages – professional desktop login ── */

.auth-page {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    direction: rtl;
    background: #123a56;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-page--custom-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.auth-page .auth-container {
    width: 100%;
    max-width: 100%;
    padding: 2rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* ── Split login (desktop) ── */
.auth-page--split {
    background: #f0f2f5;
}

.auth-page--split.auth-page--custom-bg {
    background-size: cover;
    background-position: center;
}

.auth-page--split .auth-container {
    padding: 0;
    align-items: stretch;
}

.auth-split {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
}

.auth-split__promo {
    display: none;
}

.auth-split__login {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: #f0f2f5;
}

.auth-promo-inner {
    max-width: 580px;
    width: 100%;
    padding: 2rem 1.5rem;
}

.auth-promo-layout {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}

.auth-promo-tagline {
    font-family: Btitr, IRANSansMobile, sans-serif;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    font-weight: 700;
    line-height: 1.45;
    color: #0f2b4a;
    margin: 0;
    white-space: nowrap;
    text-align: center;
}

.auth-promo-tagline--center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    max-width: 42%;
    white-space: normal;
}

.auth-promo-orbit {
    --orbit-r: 128px;
    --orbit-item-base: 88px;
    --orbit-item-size: var(--orbit-item-base);
    --orbit-slot-count: 8;
    position: relative;
    /* عرض: جا برای عکس ویژه (۲×پایه) در سمت راست ـ ارتفاع: جا برای عکس‌های بالا/پایین */
    width: calc(var(--orbit-r) * 2 + var(--orbit-item-base) * 2);
    height: calc(var(--orbit-r) * 2 + var(--orbit-item-base));
    flex-shrink: 0;
    /* ناحیه‌ی مدار (به‌خصوص گوشه‌های کادرِ چرخان که هنگام چرخش سرریز می‌کنند)
       نباید کلیک بگیرد؛ وگرنه روی دکمه‌ها/فرم می‌افتد و کلیک‌ها را می‌بلعد.
       فقط خودِ تصاویر (.auth-promo-frame) دوباره کلیک‌پذیر می‌شوند. */
    pointer-events: none;
}

@property --orbit-angle {
    syntax: '<angle>';
    inherits: true;
    initial-value: 0deg;
}

@property --orbit-item-size {
    syntax: '<length>';
    inherits: true;
    initial-value: 88px;
}

.auth-promo-orbit-track {
    --orbit-angle: 0deg;
    position: absolute;
    inset: 0;
    transform: rotate(var(--orbit-angle));
    transform-origin: center center;
    /* چرخش نرم با هر کلیک؛ روی متغیر ثبت‌شده‌ی @property انجام می‌شود تا
       هم مسیر و هم چرخش معکوسِ تصاویر (که از همین متغیر ارث می‌برند) هم‌زمان حرکت کنند */
    transition: --orbit-angle 0.6s ease-in-out;
}

.auth-promo-orbit-item {
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--orbit-item-size);
    height: var(--orbit-item-size);
    margin-left: calc(var(--orbit-item-size) / -2);
    margin-top: calc(var(--orbit-item-size) / -2);
    transition: --orbit-item-size 1s linear, z-index 0s;
    transform:
        rotate(calc(var(--slot) * (360deg / var(--orbit-slot-count))))
        translateY(calc(-1 * var(--orbit-r)));
    transform-origin: center center;
    z-index: 1;
}

.auth-promo-orbit-item.is-featured {
    --orbit-item-size: calc(var(--orbit-item-base) * 2);
    z-index: 4;
}

.auth-promo-orbit-item__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transform: rotate(calc((var(--slot) * (-360deg / var(--orbit-slot-count))) - var(--orbit-angle, 0deg)));
    transform-origin: center center;
}

.auth-promo-frame {
    border: none;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    cursor: zoom-in;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    pointer-events: auto;
}

.auth-promo-frame:hover {
    opacity: 0.85;
}

.auth-promo-frame img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    pointer-events: none;
    border-radius: 12px;
}

/* ── دکمه‌های کنترل تصاویر (چرخش و بزرگ‌نمایی) ── */
.auth-promo-controls {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.auth-promo-rotate-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    border: none;
    border-radius: 999px;
    background: #1a4a7a;
    color: #fff;
    font-family: IRANSansMobile, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(15, 43, 74, 0.25);
    transition: background-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.auth-promo-rotate-btn:hover {
    background: #0f2b4a;
    box-shadow: 0 8px 22px rgba(15, 43, 74, 0.32);
}

.auth-promo-rotate-btn:active {
    transform: scale(0.96);
}

.auth-promo-rotate-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.4s ease;
}

.auth-promo-rotate-btn:active svg {
    transform: rotate(45deg);
}

/* دکمه‌های چرخش فقط-آیکون (ساعت‌گرد / خلاف ساعت‌گرد) */
.auth-promo-rotate-btn--icon {
    padding: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    justify-content: center;
    gap: 0;
}

.auth-promo-rotate-btn--icon svg {
    width: 22px;
    height: 22px;
}

/* ── دکمه بزرگ‌نمایی تصویر کنار متن ── */
.auth-promo-zoom-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    border: 1px solid #1a4a7a;
    border-radius: 999px;
    background: #ffffff;
    color: #1a4a7a;
    font-family: IRANSansMobile, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(15, 43, 74, 0.12);
    transition: background-color 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.auth-promo-zoom-btn:hover {
    background: #1a4a7a;
    color: #fff;
    box-shadow: 0 8px 22px rgba(15, 43, 74, 0.25);
}

.auth-promo-zoom-btn:active {
    transform: scale(0.96);
}

.auth-promo-zoom-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* دکمه بزرگ‌نمایی فقط-آیکون (هم‌شکل با دکمه‌های چرخش) */
.auth-promo-zoom-btn--icon {
    padding: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    justify-content: center;
    gap: 0;
    border: none;
    background: #1a4a7a;
    color: #fff;
    box-shadow: 0 6px 18px rgba(15, 43, 74, 0.25);
}

.auth-promo-zoom-btn--icon:hover {
    background: #0f2b4a;
    color: #fff;
    box-shadow: 0 8px 22px rgba(15, 43, 74, 0.32);
}

.auth-promo-zoom-btn--icon svg {
    width: 22px;
    height: 22px;
}

/* دکمه حالت روز/شب صفحه ورود (هم‌شکل با دکمه‌های چرخش و بزرگ‌نمایی) */
.auth-promo-theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: #1a4a7a;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(15, 43, 74, 0.25);
    transition: background-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.auth-promo-theme-btn:hover {
    background: #0f2b4a;
    box-shadow: 0 8px 22px rgba(15, 43, 74, 0.32);
}

.auth-promo-theme-btn:active {
    transform: scale(0.96);
}

.auth-promo-theme-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* نمایش آیکون ماه در حالت روز و خورشید در حالت شب */
.auth-theme-icon--sun { display: none; }
.auth-theme-icon--moon { display: inline-block; }
html.theme-dark .auth-theme-icon--sun { display: inline-block; }
html.theme-dark .auth-theme-icon--moon { display: none; }

.auth-promo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(15, 43, 74, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-promo-lightbox[hidden] {
    display: none !important;
}

.auth-promo-lightbox.is-open {
    display: flex;
}

.auth-promo-lightbox__img {
    max-width: min(92vw, 900px);
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.auth-promo-lightbox__close {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.auth-promo-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.28);
}

@media (min-width: 992px) {
    .auth-promo-orbit {
        /* اندازه‌ی مدار با ارتفاع و عرض viewport مقیاس می‌شود تا در پنجره‌های کوتاه‌تر
           (Edge، فایرفاکس و هر پنجره‌ی کم‌ارتفاع) تصاویر بیش از حد بزرگ نشوند و از
           بالا/پایین صفحه بیرون نزنند. سقف 336px همان اندازه‌ی طراحی اصلی است و نسبت
           اندازه‌ها (0.595) عیناً حفظ شده است. */
        --orbit-r: min(336px, 31vh, 18vw);
        --orbit-item-base: calc(var(--orbit-r) * 0.595);
    }

    .auth-promo-tagline {
        font-size: clamp(1.65rem, 2.2vw, 2.35rem);
    }

    .auth-promo-tagline--center {
        max-width: 38%;
    }

    .auth-split__promo {
        justify-content: flex-end;
        padding: 1.5rem 0 1.5rem 1.25rem;
    }

    .auth-promo-inner {
        max-width: none;
        width: auto;
        padding: 0;
    }
}

@media (min-width: 992px) {
    .auth-split {
        flex-direction: row-reverse;
        min-height: 100vh;
    }

    .auth-split__promo {
        display: flex;
        flex: 1.4;
        align-items: center;
        justify-content: flex-end;
        background: #f0f2f5;
        padding: 1.5rem 0 1.5rem 1.25rem;
    }

    .auth-split__login {
        flex: 1;
        max-width: none;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2rem 0.75rem 2rem 0.25rem;
        background: #f0f2f5;
    }

    .auth-split__login .auth-card {
        width: 100%;
        max-width: 420px;
        margin-inline-start: -0.75rem;
    }

    .auth-page--split .auth-card {
        max-width: 420px;
    }

    .auth-page--split .auth-page-footer {
        color: rgba(15, 43, 74, 0.35);
    }
}

@media (max-width: 991px) {
    .auth-page--split {
        background: #123a56;
    }

    .auth-split__login {
        background: transparent;
    }
}

/* ── Login card ── */
.auth-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
    padding: 2rem 2.25rem 2rem;
    position: relative;
    overflow: visible;
}

.auth-card__header {
    text-align: center;
    margin-bottom: 0.85rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e8edf2;
}

.auth-card__logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 0.65rem;
}

.auth-card__org {
    font-family: Btitr, IRANSansMobile, sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f2b4a;
    margin: 0 0 0.35rem;
    line-height: 1.5;
}

.auth-card__system {
    font-size: 0.9rem;
    color: #6b7c93;
    margin: 0;
}

/* ── Form fields ── */
.auth-field {
    margin-bottom: 1.1rem;
}

.auth-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #3d4f63;
    margin-bottom: 0.4rem;
}

.auth-field .form-control {
    height: 46px;
    border: 1px solid #d0d9e4;
    border-radius: 8px;
    font-size: 0.95rem;
    padding: 0.5rem 0.85rem;
    background-color: #f8fafc;
    transition: border-color 0.15s, box-shadow 0.15s;
    text-align: left;
    direction: ltr;
}

.auth-field .form-control:focus {
    border-color: #2563a8;
    box-shadow: 0 0 0 3px rgba(37, 99, 168, 0.15);
    background-color: #fff;
}

.auth-field .form-control::placeholder {
    color: #a0aec0;
    text-align: left;
}

.auth-password-wrap {
    position: relative;
}

.auth-password-wrap .form-control {
    padding-right: 2.5rem;
    padding-left: 0.85rem;
}

.auth-password-wrap .login-password-btn {
    position: absolute;
    right: 8px;
    left: auto;
    top: 10px;
    transform: none;
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-password-wrap .login-password-btn .eye-icon {
    width: 26px;
    height: 26px;
}

.auth-password-wrap .login-password-btn:hover {
    opacity: 1;
}

/* ── Errors ── */
.auth-errors .invalid-feedback,
.auth-errors .text-danger {
    font-size: 0.8rem;
    display: block;
    margin-top: 0.3rem;
}

.auth-multi-login-alert {
    background: #fff8e6;
    border: 1px solid #f0d58c;
    border-radius: 8px;
    color: #7a5b00;
    font-size: 0.84rem;
    padding: 0.75rem 0.85rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.auth-captcha {
    margin-top: 0.75rem;
}

.auth-captcha .form-control {
    height: 46px;
    border-radius: 8px;
    text-align: center;
    direction: rtl;
}

/* ── Buttons ── */
.auth-btn-primary {
    width: 100%;
    height: 46px;
    background-color: #1a4a7a;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 0.5rem;
    transition: background-color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-btn-primary:hover,
.auth-btn-primary:focus {
    background-color: #0f2b4a !important;
    color: #fff !important;
}

.auth-btn-secondary {
    width: 100%;
    height: 42px;
    background: transparent;
    border: 1px solid #1a4a7a;
    border-radius: 8px;
    color: #1a4a7a;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.65rem;
    transition: background-color 0.15s, color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.auth-btn-secondary:hover {
    background-color: #eef4fa;
    color: #0f2b4a;
}

/* ── Dual account picker ── */
.auth-account-picker {
    position: fixed;
    z-index: 1080;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background: rgba(7, 27, 43, 0.66);
    backdrop-filter: blur(5px);
}

.auth-account-picker__dialog {
    width: min(100%, 440px);
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
    text-align: right;
    outline: none;
}

.auth-skip-login {
    position: fixed;
    z-index: 1200;
    inset-block-start: 0.75rem;
    inset-inline-start: 0.75rem;
    padding: 0.55rem 0.85rem;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: #123a56;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.24);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform 0.15s ease;
}

.auth-skip-login:focus {
    color: #123a56;
    transform: translateY(0);
}

.auth-account-picker__eyebrow {
    display: inline-flex;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: #eaf2f8;
    color: #1a4a7a;
    font-size: 0.72rem;
    font-weight: 800;
}

.auth-account-picker__dialog h2 {
    margin: 0.75rem 0 0.35rem;
    color: #0f2b4a;
    font-family: Btitr, IRANSansMobile, sans-serif;
    font-size: 1.3rem;
    line-height: 1.6;
}

.auth-account-picker__dialog > p {
    margin: 0 0 1.2rem;
    color: #66798b;
    font-size: 0.84rem;
}

.auth-account-picker__choices {
    display: grid;
    gap: 0.75rem;
}

.auth-account-choice {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    min-height: 78px;
    padding: 0.8rem;
    border: 1px solid #d8e2eb;
    border-radius: 13px;
    background: #f8fafc;
    color: #173c58;
    text-align: right;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.auth-account-choice:hover,
.auth-account-choice:focus-visible {
    border-color: #2f6e9e;
    background: #f0f7fc;
    box-shadow: 0 7px 20px rgba(18, 58, 86, 0.12);
    transform: translateY(-1px);
    outline: none;
}

.auth-account-choice:disabled {
    cursor: wait;
    opacity: 0.65;
}

.auth-account-choice__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #1a4a7a;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 900;
}

.auth-account-choice--citizen .auth-account-choice__icon {
    background: #23795b;
}

.auth-account-choice__copy {
    display: grid;
    gap: 0.2rem;
}

.auth-account-choice__copy strong {
    font-size: 0.94rem;
}

.auth-account-choice__copy small {
    color: #6b7d8d;
    font-size: 0.74rem;
    line-height: 1.6;
}

.auth-account-choice__arrow {
    color: #537085;
    font-size: 1.15rem;
}

.auth-account-picker__back {
    display: block;
    margin: 1.05rem auto 0;
    padding: 0.35rem 0.5rem;
    border: 0;
    background: transparent;
    color: #526d82;
    font-size: 0.78rem;
    cursor: pointer;
}

.auth-account-picker__back:hover,
.auth-account-picker__back:focus-visible {
    color: #123a56;
    text-decoration: underline;
}

.auth-account-picker__busy {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.6rem;
    color: #526d82;
    font-size: 0.78rem;
}

@media (max-height: 540px) {
    .auth-account-picker {
        align-items: start;
        padding: 0.65rem;
    }

    .auth-account-picker__dialog {
        max-height: calc(100dvh - 1.3rem);
        padding: 1rem;
    }

    .auth-account-picker__dialog h2 {
        margin-top: 0.45rem;
        font-size: 1.1rem;
    }

    .auth-account-picker__dialog > p {
        margin-bottom: 0.7rem;
    }

    .auth-account-picker__choices {
        gap: 0.5rem;
    }

    .auth-account-choice {
        min-height: 68px;
        padding: 0.55rem;
    }

    .auth-account-picker__back {
        margin-top: 0.65rem;
    }
}

/* ── Links ── */
.auth-forgot {
    display: block;
    text-align: center;
    margin-top: 1.1rem;
    font-size: 0.82rem;
    color: #2563a8;
    text-decoration: none;
}

.auth-forgot:hover {
    color: #0f2b4a;
    text-decoration: underline;
}

/* ── Login tabs ── */
.auth-tabs-label {
    text-align: center;
    font-size: 0.88rem;
    font-weight: 600;
    color: #5a6578;
    margin: 0 0 0.85rem;
}

.auth-tabs {
    display: flex;
    gap: 0.35rem;
    margin-top: -0.15rem;
    margin-bottom: 1.25rem;
    background: #f0f4f8;
    border-radius: 10px;
    padding: 0.35rem;
}

.auth-login-nav {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    margin-bottom: 1.25rem;
    padding: 0.25rem 0.25rem 0;
    border-radius: 10px;
    background: var(--auth-surface-2, #f0f4f8);
}

.auth-login-nav .auth-tabs {
    min-width: 0;
    gap: 0;
    margin: 0;
    padding: 0;
    background: transparent;
}

.auth-login-nav .auth-tab,
.auth-login-nav .auth-sso-entry {
    position: relative;
    min-width: 0;
    min-height: 48px;
    padding: 0.5rem 0.25rem 0.75rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--auth-muted, #5a6578);
    font-size: clamp(0.7rem, 2.8vw, 0.8rem);
    white-space: nowrap;
    box-shadow: none;
}

.auth-login-nav .auth-tab.is-active {
    background: transparent;
    color: var(--auth-accent, #1a4a7a);
    box-shadow: none;
}

.auth-login-nav .auth-tab.is-active::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    inset-block-end: 0;
    width: 2rem;
    margin-inline: auto;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: currentColor;
}

.auth-login-nav .auth-tab:focus-visible,
.auth-sso-entry:focus-visible {
    outline: 2px solid var(--auth-accent, #1a4a7a);
    outline-offset: 2px;
}

/* وقتی لینک «دولت من» از JSX حذف یا کامنت می‌شود، نوار تب‌ها تنها فرزند
   این ردیف است و باید بدون تغییر عرض کارت، فضای هر دو ستون را پر کند. */
.auth-login-nav > .auth-tabs:last-child {
    grid-column: 1 / -1;
}

.auth-sso-entry {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 47px;
    padding: 0.3rem 0.4rem;
    border: 1px solid var(--auth-border, #d0d9e4);
    border-radius: 10px;
    background: var(--auth-surface, #fff);
    color: var(--auth-text, #123a56);
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.auth-sso-entry:hover,
.auth-sso-entry:focus-visible {
    border-color: rgba(18, 58, 86, 0.2);
    color: #123a56;
    text-decoration: none;
}

.auth-login-status {
    min-height: 0;
    margin: 0;
    color: #526579;
    font-size: 0.78rem;
    line-height: 1.7;
    text-align: center;
}

.auth-login-status:not(.is-visible) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.auth-login-status.is-visible {
    margin: 0.65rem 0 0.15rem;
}

.auth-tab {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.25;
    padding: 0.3rem 0.4rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #5a6578;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s, box-shadow 0.15s;
}

/* روی کارت‌های باریک (مانیتورهای کوچک) متنِ تب‌ها کوچک‌تر می‌شود تا
   برچسبِ بلندِ «نام کاربری و رمز» سطرِ تب‌ها را بهم نریزد. */
@media (max-width: 420px) {
    .auth-tabs {
        gap: 0.25rem;
        padding: 0.3rem;
    }

    .auth-tab {
        font-size: 0.72rem;
        padding: 0.3rem 0.25rem;
    }
}

.auth-tab:hover {
    color: #1a4a7a;
}

.auth-tab.is-active {
    background: #ffffff;
    color: #1a4a7a;
    box-shadow: 0 2px 8px rgba(15, 43, 74, 0.1);
}

.auth-tab-panel {
    display: none;
}

.auth-tab-panel.is-active {
    display: block;
    animation: authFieldFade 0.25s ease;
}

.auth-tab-panel__desc {
    font-size: 0.85rem;
    color: #5a6578;
    margin: 0 0 1rem;
    text-align: center;
}

.auth-login-step {
    animation: authFieldFade 0.25s ease;
}

.auth-btn-text {
    width: 100%;
    margin-top: 0.65rem;
    padding: 0.5rem;
    border: none;
    background: none;
    color: #2563a8;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

.auth-btn-text:hover {
    color: #0f2b4a;
    text-decoration: underline;
}

@keyframes authFieldFade {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-install-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.auth-install__option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    color: #1e2d3d;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s, border-color 0.15s;
    border: 1px solid #e8edf2;
    border-radius: 8px;
    background: #f8fafc;
}

.auth-install__option:hover {
    background: #f0f6fc;
    border-color: #c5d5e8;
    color: #0f2b4a;
}

.auth-install__option-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    background: none;
}

.auth-install__option-icon img {
    height: 26px;
    width: 26px;
    object-fit: contain;
}

/* ── Footer branding ── */
.auth-page-footer {
    position: fixed;
    bottom: 1rem;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    pointer-events: none;
}

/* =========================================================================
   حالت شب (Dark mode) برای صفحه‌ی ورود — با کلاس theme-dark روی <html>
   فعال می‌شود (هم‌کلید با داشبورد: localStorage.theme).
   ========================================================================= */
html.theme-dark {
    --auth-bg: #0f1b29;
    --auth-surface: #16273a;
    --auth-surface-2: #1c3149;
    --auth-elevated: #213a56;
    --auth-text: #e2e8f0;
    --auth-muted: #94a3b8;
    --auth-border: #2a3f57;
    --auth-accent: #6cb2ff;
    /* پس‌زمینه‌ی بخش تصاویر امیرکبیر در حالت شب:
       هم‌خانواده با پس‌زمینه‌ی ورود (#0f1b29) اما حدود ۳۰٪ روشن‌تر
       تا دو نیمه‌ی صفحه از هم متمایز باشند. */
    --auth-promo-bg: #142335;
}

html.theme-dark .auth-page--split,
html.theme-dark .auth-split__login {
    background: var(--auth-bg);
}

/* نیمه‌ی تصاویر امیرکبیر: مشابه پس‌زمینه‌ی ورود ولی ۳۰٪ متفاوت */
html.theme-dark .auth-split__promo {
    background: var(--auth-promo-bg);
}

html.theme-dark .auth-promo-tagline {
    color: #cfe0f5;
}

/* Password recovery */
.auth-recovery {
    width: 100%;
    min-height: calc(100vh - 4rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.auth-recovery__card {
    max-width: 440px;
    padding: 1.75rem 2.25rem 2rem;
}

.auth-recovery__header {
    margin-bottom: 1.35rem;
}

.auth-recovery__logo {
    display: block;
    width: 118px;
    height: 118px;
    margin: 0 auto 0.6rem;
    object-fit: contain;
    object-position: center;
}

.auth-recovery__org {
    margin: 0 0 0.6rem;
    color: #0f2b4a;
    font-family: Btitr, IRANSansMobile, sans-serif;
    font-size: 1.18rem;
    font-weight: 700;
}

.auth-recovery__title {
    margin: 0;
    color: #1e2d3d;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.7;
}

.auth-recovery__description {
    margin: 0.35rem 0 0;
    color: #64748b;
    font-size: 0.84rem;
    line-height: 1.8;
}

.auth-recovery__form {
    width: 100%;
}

.auth-otp {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 1.25rem 0;
}

.auth-otp .form-control {
    width: 100%;
    height: 54px;
    padding: 0;
    border: 1px solid #d0d9e4;
    border-radius: 9px;
    background: #f8fafc;
    color: #0f2b4a;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    direction: ltr;
}

.auth-otp .form-control:focus {
    border-color: #2563a8;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 168, 0.15);
}

.auth-recovery__alert {
    margin: 0.85rem 0 0;
    padding: 0.7rem 0.8rem;
    border: 1px solid #b9dfc4;
    border-radius: 8px;
    background: #effaf2;
    color: #24663a;
    font-size: 0.8rem;
    line-height: 1.7;
    text-align: center;
}

.auth-recovery__alert--error {
    border-color: #f2b8bd;
    background: #fff1f2;
    color: #a61b29;
}

.auth-recovery .auth-btn-secondary:disabled {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #64748b;
    cursor: not-allowed;
}

html.theme-dark .auth-recovery__org,
html.theme-dark .auth-recovery__title {
    color: var(--auth-text);
}

html.theme-dark .auth-recovery__description {
    color: var(--auth-muted);
}

html.theme-dark .auth-otp .form-control {
    border-color: var(--auth-border);
    background: var(--auth-surface-2);
    color: var(--auth-text);
}

@media (max-width: 480px) {
    .auth-recovery {
        min-height: calc(100vh - 2rem);
        padding: 0.5rem;
    }

    .auth-recovery__card {
        padding: 1.4rem 1.25rem 1.6rem;
    }

    .auth-recovery__logo {
        width: 100px;
        height: 100px;
    }

    .auth-otp {
        gap: 0.4rem;
    }
}

/* ── اسلایدر قابل تنظیم صفحه ورود ── */
.auth-split__promo--slider {
    padding: 0 !important;
    overflow: hidden;
}

.auth-login-slider {
    --slider-duration: 6000ms;
    position: relative;
    width: 100%;
    min-width: 0;
    height: 100vh;
    min-height: 620px;
    overflow: hidden;
    background: #102d49;
    outline: none;
}

.auth-login-slider:focus-visible {
    box-shadow: inset 0 0 0 3px #8fc7ff;
}

.auth-login-slider__viewport,
.auth-login-slide {
    position: absolute;
    inset: 0;
}

.auth-login-slide {
    visibility: hidden;
    opacity: 0;
    transform: scale(1.035);
    transition: opacity 0.75s ease, transform 1.1s ease, visibility 0s linear 0.75s;
}

.auth-login-slide.is-active {
    visibility: visible;
    opacity: 1;
    transform: scale(1);
    transition-delay: 0s;
    z-index: 1;
}

.auth-login-slide__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.auth-login-slide__shade {
    position: absolute;
    inset: 0;
    background: rgba(7, 27, 45, 0.56);
}

.auth-login-slide__content {
    position: absolute;
    z-index: 2;
    right: clamp(2rem, 6vw, 5rem);
    left: clamp(2rem, 6vw, 5rem);
    bottom: clamp(7rem, 14vh, 10rem);
    max-width: 650px;
    color: #fff;
    text-align: right;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.3);
}

.auth-login-slide__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 30px;
    margin-bottom: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    background: rgba(8, 37, 62, 0.34);
    backdrop-filter: blur(8px);
}

.auth-login-slide__content h2 {
    margin: 0;
    font-family: Btitr, IRANSansMobile, sans-serif;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.35;
    font-weight: 700;
}

.auth-login-slide__content p {
    max-width: 580px;
    margin: 1rem 0 0;
    font-size: clamp(0.95rem, 1.25vw, 1.2rem);
    line-height: 2;
    color: rgba(255, 255, 255, 0.9);
}

.auth-login-slider__arrow,
.auth-login-slider__pause {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 50%;
    color: #fff;
    background: rgba(7, 33, 55, 0.46);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.auth-login-slider__arrow:hover,
.auth-login-slider__pause:hover {
    background: rgba(23, 83, 132, 0.9);
    transform: translateY(-2px);
}

.auth-login-slider__arrow:focus-visible,
.auth-login-slider__pause:focus-visible,
.auth-login-slider__dot:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.auth-login-slider__arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    line-height: 1;
}

.auth-login-slider__arrow:hover {
    transform: translateY(calc(-50% - 2px));
}

.auth-login-slider__arrow--prev { right: 1.5rem; }
.auth-login-slider__arrow--next { left: 1.5rem; }

.auth-login-slider__toolbar {
    position: absolute;
    z-index: 3;
    right: clamp(2rem, 6vw, 5rem);
    left: clamp(2rem, 6vw, 5rem);
    bottom: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.auth-login-slider__dots,
.auth-login-slider__actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.auth-login-slider__dot {
    position: relative;
    width: 30px;
    height: 4px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: width 0.25s ease, background-color 0.25s ease;
}

.auth-login-slider__dot.is-active {
    width: 58px;
    background: rgba(255, 255, 255, 0.68);
}

.auth-login-slider__dot.is-active::after {
    content: '';
    position: absolute;
    inset: 0;
    width: 0;
    border-radius: inherit;
    background: #fff;
}

.auth-login-slider.is-ticking .auth-login-slider__dot.is-active::after {
    width: 100%;
    transition: width var(--slider-duration) linear;
}

.auth-login-slider__pause svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.auth-login-slider__play-icon { display: none; }
.auth-login-slider__pause.is-paused .auth-login-slider__pause-icon { display: none; }
.auth-login-slider__pause.is-paused .auth-login-slider__play-icon { display: block; }

.auth-login-slider .auth-promo-theme-btn {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(7, 33, 55, 0.46);
    box-shadow: none;
    backdrop-filter: blur(10px);
}

@media (prefers-reduced-motion: reduce) {
    .auth-login-slide {
        transform: none;
        transition-duration: 0.01ms;
    }

    .auth-login-slider__dot.is-active::after {
        transition: none !important;
    }
}

/* نشست‌های فعال در ورود هم‌زمان */
.auth-session-modal {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: grid;
    place-items: center;
    padding: clamp(12px, 3vw, 28px);
    isolation: isolate;
    direction: rtl;
}

.auth-session-modal__backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(7, 24, 38, 0.66);
    backdrop-filter: blur(3px);
}

.auth-session-modal__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(760px, 100%);
    max-height: min(86dvh, 760px);
    overflow: hidden;
    border: 1px solid #cbd7e2;
    border-radius: 18px;
    background: #fff;
    color: #17314b;
    box-shadow: 0 24px 70px rgba(5, 27, 43, 0.28);
    outline: none;
}

.auth-session-modal__header,
.auth-session-modal__footer {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: #f5f8fb;
}

.auth-session-modal__header {
    border-bottom: 1px solid #d8e1e9;
}

.auth-session-modal__footer {
    justify-content: flex-end;
    border-top: 1px solid #d8e1e9;
}

.auth-session-modal__eyebrow {
    display: block;
    margin-bottom: 3px;
    color: #47708f;
    font-size: 0.75rem;
    font-weight: 700;
}

.auth-session-modal__header h2 {
    margin: 0;
    color: #0d3551;
    font-size: 1.16rem;
    font-weight: 800;
}

.auth-session-modal__close {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #c7d3de;
    border-radius: 10px;
    background: #fff;
    color: #36556d;
    font-size: 1.55rem;
    line-height: 1;
    cursor: pointer;
}

.auth-session-modal__close:hover,
.auth-session-modal__close:focus-visible {
    border-color: #164a6b;
    color: #0d3551;
    outline: 3px solid rgba(22, 74, 107, 0.14);
}

.auth-session-modal__body {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px 20px;
}

.auth-session-modal__description {
    margin: 0 0 14px;
    color: #536b7e;
    line-height: 1.8;
}

.auth-session-modal__message {
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid;
    border-radius: 10px;
    font-size: 0.84rem;
    line-height: 1.7;
}

.auth-session-modal__message.is-error {
    border-color: #efb4b4;
    background: #fff2f2;
    color: #a42626;
}

.auth-session-modal__message.is-success {
    border-color: #a9d8c7;
    background: #eefaf5;
    color: #176648;
}

.auth-session-modal__table-wrap {
    overflow: auto;
    border: 1px solid #d4dee7;
    border-radius: 12px;
}

.auth-session-modal__table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    text-align: center;
    font-size: 0.84rem;
}

.auth-session-modal__table th,
.auth-session-modal__table td {
    padding: 11px 10px;
    border-bottom: 1px solid #e1e7ed;
    vertical-align: middle;
}

.auth-session-modal__table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #eaf0f5;
    color: #23445d;
    font-weight: 800;
}

.auth-session-modal__table tbody tr:last-child > * {
    border-bottom: 0;
}

.auth-session-modal__table tbody tr:hover {
    background: #f8fafc;
}

.auth-session-modal__remove,
.auth-session-modal__cancel {
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 9px;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

.auth-session-modal__remove {
    width: 100%;
    border: 1px solid #b83a3a;
    background: #fff5f5;
    color: #a12424;
}

.auth-session-modal__remove:hover,
.auth-session-modal__remove:focus-visible {
    background: #b52f2f;
    color: #fff;
    outline: 3px solid rgba(181, 47, 47, 0.16);
}

.auth-session-modal__cancel {
    border: 1px solid #b9c9d5;
    background: #fff;
    color: #24465f;
}

.auth-session-modal__cancel:hover,
.auth-session-modal__cancel:focus-visible {
    border-color: #164a6b;
    outline: 3px solid rgba(22, 74, 107, 0.14);
}

.auth-session-modal button:disabled {
    cursor: wait;
    opacity: 0.58;
}

html.theme-dark .auth-session-modal__dialog {
    border-color: var(--auth-border);
    background: var(--auth-surface);
    color: var(--auth-text);
}

html.theme-dark .auth-session-modal__header,
html.theme-dark .auth-session-modal__footer,
html.theme-dark .auth-session-modal__table thead th {
    border-color: var(--auth-border);
    background: var(--auth-surface-2);
    color: #dbeafe;
}

html.theme-dark .auth-session-modal__header h2,
html.theme-dark .auth-session-modal__close,
html.theme-dark .auth-session-modal__cancel {
    color: #f1f5f9;
}

html.theme-dark .auth-session-modal__description,
html.theme-dark .auth-session-modal__eyebrow {
    color: var(--auth-muted);
}

html.theme-dark .auth-session-modal__close,
html.theme-dark .auth-session-modal__cancel {
    border-color: var(--auth-border);
    background: var(--auth-surface-2);
}

html.theme-dark .auth-session-modal__table-wrap,
html.theme-dark .auth-session-modal__table th,
html.theme-dark .auth-session-modal__table td {
    border-color: var(--auth-border);
}

html.theme-dark .auth-session-modal__table tbody tr:hover {
    background: var(--auth-surface-2);
}

html.theme-dark .auth-session-modal__remove {
    border-color: #c76464;
    background: rgba(181, 47, 47, 0.16);
    color: #ffb4b4;
}

@media (max-width: 575px) {
    .auth-session-modal {
        padding: 10px;
        align-items: end;
    }

    .auth-session-modal__dialog {
        width: 100%;
        max-height: 90dvh;
        border-radius: 16px 16px 10px 10px;
    }

    .auth-session-modal__header,
    .auth-session-modal__body,
    .auth-session-modal__footer {
        padding: 14px 16px;
    }

    .auth-session-modal__table-wrap {
        overflow: visible;
        border: 0;
    }

    .auth-session-modal__table,
    .auth-session-modal__table tbody,
    .auth-session-modal__table tr,
    .auth-session-modal__table th,
    .auth-session-modal__table td {
        display: block;
        width: 100%;
    }

    .auth-session-modal__table thead {
        display: none;
    }

    .auth-session-modal__table tbody {
        display: grid;
        gap: 10px;
    }

    .auth-session-modal__table tbody tr {
        padding: 12px;
        border: 1px solid #d4dee7;
        border-radius: 12px;
        background: #fff;
    }

    .auth-session-modal__table tbody tr > * {
        display: grid;
        grid-template-columns: 108px minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        padding: 7px 0;
        border: 0;
        text-align: right;
    }

    .auth-session-modal__table tbody tr > *::before {
        content: attr(data-label);
        color: #60778a;
        font-size: 0.76rem;
        font-weight: 700;
    }

    .auth-session-modal__table tbody tr > td:last-child {
        grid-template-columns: 1fr;
        padding-top: 10px;
    }

    .auth-session-modal__table tbody tr > td:last-child::before {
        display: none;
    }

    .auth-session-modal__footer {
        justify-content: stretch;
    }

    .auth-session-modal__cancel {
        width: 100%;
    }

    html.theme-dark .auth-session-modal__table tbody tr {
        border-color: var(--auth-border);
        background: var(--auth-surface-2);
    }
}

/* کارت ورود */
html.theme-dark .auth-card {
    background: var(--auth-surface);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
}

html.theme-dark .auth-card__header {
    border-bottom-color: var(--auth-border);
}

html.theme-dark .auth-card__logo {
    padding: 0.45rem;
    background: #ffffff;
    border-radius: 12px;
}

html.theme-dark .auth-card__org {
    color: #f1f5f9;
}

html.theme-dark .auth-card__system {
    color: var(--auth-muted);
}

/* تب‌ها */
html.theme-dark .auth-tabs {
    background: var(--auth-surface-2);
}

html.theme-dark .auth-sso-entry {
    background: var(--auth-surface-2);
    color: var(--auth-muted);
}

html.theme-dark .auth-sso-entry:hover,
html.theme-dark .auth-sso-entry:focus-visible {
    border-color: var(--auth-border);
    color: #ffffff;
}

html.theme-dark .auth-login-status {
    color: var(--auth-muted);
}

html.theme-dark .auth-account-picker {
    background: rgba(1, 10, 18, 0.78);
}

html.theme-dark .auth-account-picker__dialog {
    border-color: var(--auth-border);
    background: var(--auth-surface);
}

html.theme-dark .auth-account-picker__eyebrow {
    background: var(--auth-surface-2);
    color: #b9d7ef;
}

html.theme-dark .auth-account-picker__dialog h2 {
    color: #f1f5f9;
}

html.theme-dark .auth-account-picker__dialog > p,
html.theme-dark .auth-account-choice__copy small,
html.theme-dark .auth-account-picker__back,
html.theme-dark .auth-account-picker__busy {
    color: var(--auth-muted);
}

html.theme-dark .auth-account-choice {
    border-color: var(--auth-border);
    background: var(--auth-surface-2);
    color: #eef5f8;
}

html.theme-dark .auth-account-choice:hover,
html.theme-dark .auth-account-choice:focus-visible {
    border-color: #6fa8d1;
    background: var(--auth-elevated, #213a56);
}

html.theme-dark .auth-tab {
    color: var(--auth-muted);
}

html.theme-dark .auth-tab:hover {
    color: #cfe0f5;
}

html.theme-dark .auth-tab.is-active {
    background: var(--auth-elevated, #213a56);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

html.theme-dark .auth-login-nav .auth-tabs,
html.theme-dark .auth-login-nav .auth-tab,
html.theme-dark .auth-login-nav .auth-sso-entry {
    background: transparent;
    box-shadow: none;
}

html.theme-dark .auth-login-nav .auth-tab.is-active {
    color: var(--auth-accent);
}

/* فیلدهای فرم */
html.theme-dark .auth-field label {
    color: #cbd5e1;
}

html.theme-dark .auth-field .form-control,
html.theme-dark .auth-password-wrap .form-control {
    background-color: var(--auth-surface-2);
    border-color: var(--auth-border);
    color: var(--auth-text);
}

html.theme-dark .auth-field .form-control:focus {
    background-color: var(--auth-surface-2);
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 3px rgba(108, 178, 255, 0.2);
}

html.theme-dark .auth-field .form-control::placeholder {
    color: #64748b;
}

html.theme-dark .auth-password-wrap .login-password-btn .eye-icon {
    filter: invert(1) brightness(1.6);
}

/* لینک فراموشی رمز */
html.theme-dark .auth-forgot {
    color: var(--auth-accent);
}

html.theme-dark .auth-forgot:hover {
    color: #a8d1ff;
}

html.theme-dark .auth-tab-panel__desc {
    color: var(--auth-muted);
}

/* گزینه‌های نصب اپلیکیشن */
html.theme-dark .auth-install__option {
    background: var(--auth-surface-2);
    border-color: var(--auth-border);
    color: var(--auth-text);
}

html.theme-dark .auth-install__option:hover {
    background: var(--auth-elevated, #213a56);
}
