/* ── 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-session-dialog {
    width: min(720px, calc(100% - 2rem));
    max-width: 720px;
}

.auth-session-modal__body {
    padding: 1.5rem;
    max-height: calc(100dvh - 8rem);
    overflow: hidden;
}

.auth-session-remove-all {
    width: 100%;
    margin: 0.75rem 0 1rem;
    padding: 0.7rem 1rem;
    border: 1px solid #8f1521;
    background: #8f1521;
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
}

.auth-session-remove-all:hover,
.auth-session-remove-all:focus {
    background: #6f1019;
    border-color: #6f1019;
    color: #fff;
}

.auth-session-list {
    max-height: min(48dvh, 430px);
    overflow: auto;
    border: 1px solid #dfe4ea;
    border-radius: 8px;
}

.auth-session-list thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
}

@media (max-width: 575.98px) {
    .auth-session-dialog {
        width: calc(100% - 1rem);
        margin: 0.5rem auto;
    }

    .auth-session-modal__body {
        padding: 1rem 0.75rem;
        max-height: calc(100dvh - 5rem);
    }

    .auth-session-list {
        font-size: 0.75rem;
    }
}

.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(92px, 1fr);
    align-items: stretch;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.auth-login-nav .auth-tabs {
    margin-bottom: 0;
}

/* وقتی لینک «دولت من» از 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 transparent;
    border-radius: 10px;
    background: #f0f4f8;
    color: #5a6578;
    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;
    outline: 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;
    }
}

/* کارت ورود */
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-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);
}

/* =========================================================================
   Fire 125 login identity
   ========================================================================= */
.auth-split--fire {
    background: #11151b;
}

.auth-page--split .auth-container > #login-react-root {
    width: 100%;
    min-width: 0;
}

.auth-split--fire .auth-split__login {
    position: relative;
    overflow-y: auto;
    background: #f4f5f7;
}

.auth-split--fire .auth-split__login::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: #df2738;
}

.auth-login-theme {
    display: none;
}

.auth-split__promo--fire {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 0 !important;
    background: #11151b;
}

.auth-fire-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 650px;
    overflow: hidden;
    background-color: #11151b;
    background-image: url('/images/auth/fire-hero.webp');
    background-size: cover;
    background-position: center;
    color: #fff;
}

.auth-fire-hero::before {
    content: '';
    position: absolute;
    z-index: 0;
    inset: 0;
    background: rgba(8, 11, 15, .5);
}

.auth-fire-hero::after {
    content: '';
    position: absolute;
    z-index: 0;
    inset-block: 0;
    inset-inline-end: 0;
    width: 44%;
    background: rgba(8, 11, 15, .58);
    border-inline-start: 1px solid rgba(255, 255, 255, .08);
}

.auth-fire-hero__topbar {
    position: absolute;
    z-index: 2;
    inset-block-start: clamp(1.5rem, 4vh, 3rem);
    inset-inline: clamp(1.75rem, 4.5vw, 4.5rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-fire-hero__brand {
    display: flex;
    align-items: center;
    gap: .8rem;
}

.auth-fire-hero__brand img {
    width: 54px;
    height: 60px;
    padding: .3rem;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 14px;
    background: rgba(12, 15, 20, .76);
    object-fit: contain;
}

.auth-fire-hero__brand span {
    display: grid;
    gap: .15rem;
}

.auth-fire-hero__brand b {
    font-size: .95rem;
    font-weight: 800;
}

.auth-fire-hero__brand small {
    color: rgba(255, 255, 255, .68);
    font-size: .7rem;
}

.auth-fire-hero__topbar .auth-promo-theme-btn {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(12, 15, 20, .72);
    box-shadow: none;
    backdrop-filter: blur(10px);
}

.auth-fire-hero__topbar .auth-promo-theme-btn:hover {
    background: #df2738;
}

.auth-fire-hero__content {
    position: absolute;
    z-index: 2;
    inset-inline-end: clamp(1.75rem, 5vw, 5rem);
    inset-block-end: clamp(3.5rem, 9vh, 7rem);
    width: min(560px, 64%);
    text-align: right;
}

.auth-fire-hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: 1rem;
    padding: .4rem .7rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(12, 15, 20, .68);
    color: rgba(255, 255, 255, .86);
    font-size: .75rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.auth-fire-hero__kicker i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff394a;
    box-shadow: 0 0 0 5px rgba(223, 39, 56, .18);
}

.auth-fire-hero__content h2 {
    margin: 0;
    font-family: Btitr, IRANSansMobile, sans-serif;
    font-size: clamp(2.5rem, 5vw, 5.25rem);
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: -.03em;
    text-shadow: 0 5px 30px rgba(0, 0, 0, .5);
}

.auth-fire-hero__content h2::after {
    content: '';
    display: block;
    width: 84px;
    height: 5px;
    margin-top: 1.15rem;
    border-radius: 99px;
    background: #df2738;
}

.auth-fire-hero__content > p {
    max-width: 490px;
    margin: 1.15rem 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: clamp(.86rem, 1.15vw, 1.05rem);
    line-height: 2;
}

.auth-fire-hero__facts {
    display: flex;
    align-items: stretch;
    gap: 1px;
    width: min(100%, 480px);
    margin-top: 1.65rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 14px;
    background: rgba(255, 255, 255, .13);
    backdrop-filter: blur(12px);
}

.auth-fire-hero__facts span {
    display: grid;
    flex: 1;
    gap: .15rem;
    padding: .75rem .9rem;
    background: rgba(12, 15, 20, .72);
}

.auth-fire-hero__facts strong {
    font-size: 1.05rem;
    font-weight: 900;
}

.auth-fire-hero__facts small {
    color: rgba(255, 255, 255, .62);
    font-size: .67rem;
}

.auth-fire-hero__rail {
    position: absolute;
    z-index: 2;
    inset-block: 0;
    inset-inline-start: 0;
    display: flex;
    width: 54px;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 0;
    border-inline-end: 1px solid rgba(255, 255, 255, .1);
    background: rgba(8, 11, 15, .56);
    color: rgba(255, 255, 255, .45);
}

.auth-fire-hero__rail span {
    writing-mode: vertical-rl;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .25em;
}

.auth-fire-hero__rail b {
    color: #df2738;
    font-size: 1.05rem;
    font-weight: 900;
    transform: rotate(-90deg);
}

.auth-split--fire .auth-card {
    max-width: 460px;
    padding: 1.65rem 1.9rem 1.75rem;
    border: 1px solid #e1e4e8;
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(17, 21, 27, .14);
}

.auth-split--fire .auth-card::before {
    content: '';
    position: absolute;
    inset: 0 1.5rem auto;
    height: 4px;
    border-radius: 0 0 99px 99px;
    background: #df2738;
}

.auth-split--fire .auth-card__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: .25rem 0 1rem;
    text-align: right;
}

.auth-split--fire .auth-card__logo {
    width: 74px;
    height: 82px;
    flex: 0 0 auto;
    margin: 0;
    padding: .3rem;
    border: 1px solid #eceef0;
    border-radius: 18px;
    background: #fff;
}

.auth-card__heading {
    min-width: 0;
}

.auth-card__eyebrow {
    display: block;
    margin-bottom: .22rem;
    color: #df2738;
    font-size: .68rem;
    font-weight: 850;
}

.auth-split--fire .auth-card__org {
    margin: 0;
    color: #171a1f;
    font-size: 1.12rem;
    line-height: 1.65;
}

.auth-split--fire .auth-card__system {
    margin-top: .15rem;
    color: #757b84;
    font-size: .72rem;
}

.auth-split--fire .auth-tabs {
    border: 1px solid #e6e8eb;
    border-radius: 12px;
    background: #f1f2f4;
}

.auth-split--fire .auth-tab {
    color: #717781;
}

.auth-split--fire .auth-tab:hover {
    color: #b91f2d;
}

.auth-split--fire .auth-tab.is-active {
    color: #c82232;
    box-shadow: 0 4px 14px rgba(17, 21, 27, .08);
}

.auth-split--fire .auth-field label {
    color: #3e4249;
    font-size: .78rem;
    font-weight: 750;
}

.auth-split--fire .auth-field .form-control {
    height: 49px;
    border-color: #d9dde2;
    border-radius: 11px;
    background: #f8f9fa;
}

.auth-split--fire .auth-field .form-control:focus {
    border-color: #df2738;
    box-shadow: 0 0 0 3px rgba(223, 39, 56, .12);
}

.auth-split--fire .auth-btn-primary {
    height: 49px;
    border-radius: 11px;
    background: #d82435;
    box-shadow: 0 9px 22px rgba(216, 36, 53, .22);
}

.auth-split--fire .auth-btn-primary:hover,
.auth-split--fire .auth-btn-primary:focus {
    background: #b91929 !important;
}

.auth-split--fire .auth-btn-primary:disabled {
    background: #b7bbc0;
    box-shadow: none;
    cursor: not-allowed;
}

.auth-split--fire .auth-forgot {
    color: #a51b28;
}

.auth-sso-divider {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin: .95rem 0 .7rem;
    color: #a2a6ac;
    font-size: .7rem;
}

.auth-sso-divider::before,
.auth-sso-divider::after {
    content: '';
    height: 1px;
    flex: 1;
    background: #e5e7ea;
}

.auth-sso-entry--125yar {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 20px;
    gap: .7rem;
    min-height: 62px;
    padding: .55rem .65rem;
    border-color: #e0e3e7;
    border-radius: 12px;
    background: #fff;
    color: #20242a;
    text-align: right;
}

.auth-sso-entry--125yar:hover,
.auth-sso-entry--125yar:focus-visible {
    border-color: #df2738;
    background: #fff7f8;
    color: #971723;
    box-shadow: 0 6px 18px rgba(17, 21, 27, .08);
}

.auth-sso-entry__mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 11px;
    background: #171a1f;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    font-weight: 900;
}

.auth-sso-entry--125yar > span:nth-child(2) {
    display: grid;
    align-content: center;
    gap: .1rem;
}

.auth-sso-entry--125yar strong {
    font-size: .76rem;
}

.auth-sso-entry--125yar small {
    color: #7b8189;
    font-size: .66rem;
}

.auth-sso-entry--125yar svg {
    width: 18px;
    height: 18px;
    align-self: center;
    fill: currentColor;
}

.auth-install-empty {
    display: grid;
    justify-items: center;
    gap: .5rem;
    padding: 1.25rem 1rem;
    border: 1px dashed #d9dde2;
    border-radius: 14px;
    background: #f8f9fa;
    color: #34383f;
    text-align: center;
}

.auth-install-empty img {
    width: 56px;
    height: 62px;
}

.auth-install-empty strong {
    font-size: .84rem;
}

.auth-install-empty span {
    max-width: 280px;
    color: #777e87;
    font-size: .72rem;
    line-height: 1.8;
}

html.theme-dark .auth-split--fire .auth-split__login {
    background: #0e1116;
}

html.theme-dark .auth-split--fire .auth-card {
    border-color: #292d34;
    background: #171b21;
}

html.theme-dark .auth-split--fire .auth-card__logo {
    border-color: #30353d;
    background: #fff;
}

html.theme-dark .auth-split--fire .auth-card__org {
    color: #f5f6f7;
}

html.theme-dark .auth-split--fire .auth-card__system {
    color: #9da3ac;
}

html.theme-dark .auth-split--fire .auth-tabs {
    border-color: #30353d;
    background: #20252c;
}

html.theme-dark .auth-split--fire .auth-tab.is-active {
    background: #30363f;
    color: #ff7a86;
}

html.theme-dark .auth-split--fire .auth-field .form-control {
    border-color: #343a43;
    background: #20252c;
}

html.theme-dark .auth-sso-divider::before,
html.theme-dark .auth-sso-divider::after {
    background: #323740;
}

html.theme-dark .auth-sso-entry--125yar {
    border-color: #343a43;
    background: #20252c;
    color: #f1f3f5;
}

html.theme-dark .auth-sso-entry--125yar:hover,
html.theme-dark .auth-sso-entry--125yar:focus-visible {
    border-color: #e33a49;
    background: #2a2227;
    color: #ff98a2;
}

html.theme-dark .auth-sso-entry--125yar small {
    color: #9da3ac;
}

html.theme-dark .auth-install-empty {
    border-color: #3a4049;
    background: #20252c;
    color: #f1f3f5;
}

html.theme-dark .auth-install-empty span {
    color: #9da3ac;
}

@media (min-width: 992px) {
    .auth-split--fire .auth-split__promo {
        flex: 1.55;
    }

    .auth-split--fire .auth-split__login {
        flex: .9;
        min-width: 450px;
        padding: 2rem 1.75rem;
    }

    .auth-split--fire .auth-split__login .auth-card,
    .auth-split--fire.auth-split .auth-card {
        max-width: 460px;
        margin-inline-start: 0;
    }
}

@media (max-width: 1200px) and (min-width: 992px) {
    .auth-fire-hero__content {
        width: 72%;
    }

    .auth-fire-hero__content h2 {
        font-size: clamp(2.2rem, 4.5vw, 4rem);
    }

    .auth-split--fire .auth-split__login {
        min-width: 420px;
        padding-inline: 1rem;
    }
}

@media (max-width: 991px) {
    .auth-page--split,
    .auth-split--fire .auth-split__login {
        background: #181c22;
    }

    .auth-split--fire .auth-split__login {
        min-height: 100vh;
        padding: 1.25rem;
    }

    .auth-login-theme {
        position: absolute;
        z-index: 3;
        inset-block-start: .8rem;
        inset-inline-start: 1rem;
        display: block;
    }

    .auth-login-theme .auth-promo-theme-btn {
        width: 40px;
        height: 40px;
        border: 1px solid rgba(255, 255, 255, .18);
        background: #262b32;
        box-shadow: none;
    }

    .auth-split--fire .auth-split__login::after {
        content: 'مرکز فرماندهی و عملیات ۱۲۵';
        position: absolute;
        inset-block-start: 1rem;
        color: rgba(255, 255, 255, .46);
        font-size: .68rem;
        font-weight: 700;
    }

    .auth-split--fire .auth-card {
        margin-top: 1.75rem;
    }
}

@media (max-width: 520px) {
    .auth-split--fire .auth-split__login {
        align-items: flex-start;
        padding: 3rem .75rem 1rem;
    }

    .auth-split--fire .auth-card {
        padding: 1.35rem 1rem 1.25rem;
        border-radius: 18px;
    }

    .auth-split--fire .auth-card__header {
        gap: .75rem;
    }

    .auth-split--fire .auth-card__logo {
        width: 62px;
        height: 70px;
    }

    .auth-split--fire .auth-card__org {
        font-size: .96rem;
    }
}
