:root {
            --login-teal: #2a6578;
            --login-teal-deep: #1d4a5c;
            --login-teal-muted: rgba(42, 101, 120, 0.14);
            --login-orange: #f97316;
            --login-orange-hover: #ea580c;
            /* ستون فرم — هم‌راستا با مرجع دبیرخانه: بوم سفید، ورودی سفید، بوردر نازک */
            --login-form-bg: #ffffff;
            --login-input-bg: #ffffff;
            --login-input-border: #e5e7eb;
            --login-input-focus: #2a6578;
            --login-radius: 0.625rem;
            --login-heading: #1e3a4a;
            --login-label-color: #4b5563;
            --login-muted: #9ca3af;
            --login-slate-900: #111827;
            --login-slate-800: #1f2937;
            --login-slate-700: #374151;
            --login-slate-600: #4b5563;
            --login-slate-500: #6b7280;
            --login-border: #e5e7eb;
            --login-surface: #ffffff;
            --login-canvas: #ffffff;
        }

        /*
                                                             * تم تیرهٔ Vuexy رنگ body و پاراگراف را روشن می‌کند؛ این بلوک روی کارت لاگین کنتراست را تضمین می‌کند.
                                                             */
        html.dark-layout .login-panel {
            color: #1e293b !important;
        }

        html.dark-layout .login-panel h1.login-panel__title {
            color: var(--login-heading) !important;
        }

        html.dark-layout .login-panel p.login-panel__subtitle {
            color: var(--login-muted) !important;
        }

        html.dark-layout .login-panel p.login-panel__footer {
            color: var(--login-muted) !important;
        }

        html.dark-layout .login-panel label.form-label {
            color: var(--login-label-color) !important;
        }

        html.dark-layout .login-panel .custom-control-label {
            color: #1e293b !important;
            font-size: 0.85rem;
        }

        /*
                                                                 * Vuexy: .content دارای margin کنار سایدبار است؛ بدون منو نوار تیرهٔ پس‌زمینه دیده می‌شد.
                                                                 */
        html body.blank-page:has(.loginPage) .content,
        html body.blank-page:has(.loginPage) .content.app-content {
            margin-right: 0 !important;
            margin-left: 0 !important;
            width: 100% !important;
            max-width: 100% !important;
        }

        html body.blank-page:has(.loginPage) .content.app-content {
            padding: 0 !important;
            min-height: 100vh !important;
        }

        html.dark-layout body.blank-page:has(.loginPage),
        html body.blank-page:has(.loginPage) {
            background-color: var(--login-canvas) !important;
        }

        .login-split {
            display: flex;
            flex-wrap: wrap;
            min-height: 100vh;
            min-height: calc(var(--vh, 1vh) * 100);
            width: 100%;
            overflow: hidden;
        }

        .login-split__brand {
            flex: 1 1 48%;
            min-width: 300px;
            background:
                radial-gradient(ellipse 90% 70% at 20% 100%, rgba(234, 108, 44, 0.22) 0%, transparent 55%),
                linear-gradient(155deg, var(--login-teal) 0%, var(--login-teal-deep) 100%);
            color: #fff;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-between;
            padding: 2.75rem 1.75rem 2.25rem;
            position: relative;
        }

        .login-split__brand::after {
            content: '';
            position: absolute;
            inset: 0;
            background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
            opacity: 1;
            pointer-events: none;
        }

        .login-split__brand-inner {
            position: relative;
            z-index: 1;
            width: 100%;
            max-width: 420px;
            text-align: center;
        }

        .login-split__brand .login-brand__logo {
            display: inline-block;
            width: 88px;
            height: 88px;
            background-color: var(--login-orange);
            -webkit-mask-image: url('/theme/img/iranLogo.png');
            mask-image: url('/theme/img/iranLogo.png');
            -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
            -webkit-mask-size: contain;
            mask-size: contain;
            -webkit-mask-position: center;
            mask-position: center;
            filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.22));
            margin-bottom: 0.65rem;
        }

        .login-split__brand .login-brand__epigraph {
            font-family: 'IRANSans', 'IRANYekan', 'Tahoma', sans-serif;
            font-size: 0.8125rem;
            font-weight: 600;
            letter-spacing: 0.06em;
            color: rgba(255, 255, 255, 0.94) !important;
            margin: 0 0 1rem;
            line-height: 1.5;
        }

        .login-split__brand .login-brand__title {
            font-family: 'IRANNastaliq', 'IRANSans', 'IRANYekan', serif;
            font-size: 2.25rem;
            font-weight: 400;
            line-height: 1.2;
            color: #ffffff !important;
            margin: 0;
            padding: 0 0.75rem;
            text-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
            max-width: 26rem;
            margin-left: auto;
            margin-right: auto;
            letter-spacing: 0 !important;
        }

        .login-split__brand .login-brand__title-line {
            display: block;
            line-height: 2.55;
            margin: 0.45rem 0 0;
        }

        .login-split__brand .login-brand__title-line:first-child {
            margin-top: 0;
        }

        .login-split__brand .login-brand__tagline {
            margin-top: 0.85rem;
            font-size: 0.9375rem;
            font-weight: 400;
            color: rgba(255, 255, 255, 0.88);
            line-height: 1.75;
        }

        /* المان تزئینی پایین ستون برند (آیکن‌ها — بدون تصویر خارجی) */
        .login-brand-visual {
            position: relative;
            z-index: 1;
            width: 100%;
            max-width: 340px;
            margin: 2rem auto 0;
            padding: 1.5rem 0.5rem 0.5rem;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .login-brand-visual__glow {
            position: absolute;
            width: min(200px, 55vw);
            height: min(200px, 55vw);
            border-radius: 50%;
            background: radial-gradient(circle, rgba(249, 115, 22, 0.45) 0%, rgba(249, 115, 22, 0.08) 55%, transparent 70%);
            top: 42%;
            left: 50%;
            transform: translate(-50%, -50%);
            pointer-events: none;
        }

        .login-brand-visual__icons {
            position: relative;
            display: flex;
            flex-direction: row;
            align-items: flex-end;
            justify-content: center;
            gap: 0.65rem;
            flex-wrap: wrap;
        }

        .login-brand-visual__icon-wrap {
            width: 4.25rem;
            height: 4.25rem;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.22);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
            color: rgba(255, 255, 255, 0.95);
        }

        .login-brand-visual__icon-wrap svg {
            width: 1.85rem !important;
            height: 1.85rem !important;
        }

        .login-brand-visual__icon-wrap--primary {
            width: 5.25rem;
            height: 5.25rem;
            background: rgba(249, 115, 22, 0.35);
            border-color: rgba(255, 255, 255, 0.35);
            transform: translateY(-0.6rem);
            box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
        }

        .login-brand-visual__icon-wrap--primary svg {
            width: 2.35rem !important;
            height: 2.35rem !important;
        }

        @media (max-width: 991.98px) {
            .login-brand-visual {
                margin-top: 1.25rem;
                padding-bottom: 0;
            }

            .login-brand-visual__icon-wrap--primary {
                transform: translateY(-0.35rem);
            }
        }

        /* ستون فرم: پس‌زمینهٔ سفید یکدست (مثل مرجع) */
        .login-split__form-wrap {
            flex: 0 1 min(52vw, 620px);
            min-width: 340px;
            max-width: 620px;
            background: var(--login-form-bg);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: clamp(2rem, 5vw, 3.5rem) clamp(1.75rem, 4vw, 2.75rem);
        }

        .login-panel {
            position: relative;
            width: 100%;
            max-width: 460px;
            color: var(--login-slate-800);
            background: transparent;
            border-radius: 0;
            box-shadow: none;
            border: none;
            padding: 0;
            overflow: visible;
        }

        .login-panel__head {
            text-align: right;
            margin-bottom: 1.75rem;
        }

        .login-panel__title {
            font-size: 1.35rem;
            font-weight: 700;
            text-align: right;
            margin: 0 0 0.5rem;
            color: var(--login-heading) !important;
            letter-spacing: -0.02em;
            line-height: 1.45;
        }

        .login-panel__subtitle {
            text-align: right;
            font-size: 0.8125rem;
            font-weight: 400;
            color: var(--login-muted) !important;
            margin: 0;
            line-height: 1.7;
            opacity: 1 !important;
        }

        .login-panel .form-label {
            font-weight: 600;
            font-size: 0.8125rem;
            color: var(--login-label-color) !important;
            margin-bottom: 0.45rem;
            display: block;
            text-align: right;
        }

        /* ورودی‌ها: پس‌زمینه سفید، بوردر نازک روشن، گردی ~۱۰px */
        .login-panel .form-control,
        .login-panel .form-control-merge {
            background-color: var(--login-input-bg) !important;
            border: 1px solid var(--login-input-border) !important;
            color: var(--login-slate-900) !important;
            border-radius: var(--login-radius) !important;
            min-height: 3rem;
            padding: 0.65rem 1rem;
            direction: rtl;
            text-align: right;
            transition: border-color 0.15s ease, box-shadow 0.15s ease;
        }

        .login-panel .form-control::placeholder,
        .login-panel .form-control-merge::placeholder {
            color: var(--login-muted) !important;
            opacity: 1 !important;
        }

        html.dark-layout .login-panel .form-control::placeholder,
        html.dark-layout .login-panel .form-control-merge::placeholder {
            color: var(--login-muted) !important;
            opacity: 1 !important;
        }

        .login-panel .form-control:focus,
        .login-panel .form-control-merge:focus {
            background-color: var(--login-input-bg) !important;
            border-color: var(--login-input-focus) !important;
            box-shadow: 0 0 0 3px var(--login-teal-muted) !important;
            color: var(--login-slate-900) !important;
        }

        .login-panel .form-group {
            margin-bottom: 1.35rem;
        }

        .login-panel .invalid-feedback {
            color: #b91c1c !important;
            font-weight: 500;
        }

        .login-panel .custom-control-label {
            font-size: 0.875rem;
            font-weight: 500;
            color: var(--login-label-color) !important;
            padding-top: 0.1rem;
        }

        .login-panel .custom-control-input~.custom-control-label::before {
            background-color: #fff !important;
            border: 1px solid var(--login-input-border) !important;
        }

        .login-panel .custom-control-input:checked~.custom-control-label::before {
            background-color: var(--login-teal) !important;
            border-color: var(--login-teal) !important;
        }

        .login-panel .custom-control-input:focus~.custom-control-label::before {
            box-shadow: 0 0 0 2px var(--login-surface), 0 0 0 4px var(--login-teal-muted) !important;
        }

        .login-panel .btn-login-primary {
            background: var(--login-orange) !important;
            border: none !important;
            color: #fff !important;
            font-weight: 700;
            font-size: 1rem;
            padding: 0.75rem 1rem;
            border-radius: var(--login-radius) !important;
            width: 100%;
            margin-top: 0.5rem;
            box-shadow: 0 2px 8px rgba(249, 115, 22, 0.28);
            transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
        }

        .login-panel .btn-login-primary:hover {
            background: var(--login-orange-hover) !important;
            color: #fff !important;
            box-shadow: 0 4px 14px rgba(249, 115, 22, 0.38);
        }

        .login-panel .btn-login-primary:active {
            transform: translateY(1px);
        }

        .login-panel__footer {
            margin-top: 2rem;
            padding-top: 1.5rem;
            border-top: 1px solid var(--login-input-border);
            font-size: 0.75rem;
            font-weight: 400;
            color: var(--login-muted) !important;
            text-align: right;
            line-height: 1.75;
            opacity: 1 !important;
        }

        .errorBox {
            background: rgba(254, 242, 242, 0.9);
            border: 1px solid #fecaca;
            border-radius: var(--login-radius);
            padding: 0.65rem 0.85rem;
            margin-bottom: 1rem;
            font-size: 0.9rem;
            color: #dc2626;
        }

        .errorBox ul {
            margin: 0;
            padding-right: 1rem;
        }

        .statusBox {
            background: rgba(240, 253, 244, 0.95);
            border: 1px solid #bbf7d0;
            border-radius: var(--login-radius);
            padding: 0.65rem 0.85rem;
            margin-bottom: 1rem;
            font-size: 0.9rem;
            color: #16a34a;
        }

        @media (max-width: 991.98px) {
            .login-split__brand {
                flex: 1 1 100%;
                min-height: auto;
                padding-bottom: 1.5rem;
            }

            .login-split__form-wrap {
                flex: 1 1 100%;
                max-width: none;
            }

        }

/* بعد از custom-rtl: راست‌چین قطعی و گروه رمز با آیکن در سمت چپ فیلد */
        .login-panel #userNameInput,
        .login-panel #login-password {
            direction: rtl !important;
            text-align: right !important;
        }

        .login-panel .login-password-field {
            display: flex;
            flex-direction: row;
            direction: rtl;
            flex-wrap: nowrap;
            align-items: stretch;
        }

        .login-panel .login-password-field .form-control-merge {
            flex: 1 1 auto;
            min-width: 0;
            min-height: 3rem !important;
            border-radius: 0 0.625rem 0.625rem 0 !important;
            border-left: none !important;
        }

        .login-panel .login-password-field .input-group-append {
            margin: 0 !important;
        }

        .login-panel .login-password-field .input-group-append .input-group-text {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 3rem;
            padding: 0 0.85rem;
            border-radius: 0.625rem 0 0 0.625rem !important;
            border: 1px solid #e5e7eb !important;
            border-right: none !important;
            background-color: #ffffff !important;
            color: #9ca3af !important;
        }

        .login-panel .login-password-field .input-group-append .input-group-text:hover {
            background-color: #f9fafb !important;
            color: #2a6578 !important;
        }

        .login-panel .login-password-field .input-group-append .input-group-text .feather {
            stroke-width: 2.25px;
        }
