/* FMS Login styles — extracted verbatim. Loaded by _MainLayoutLogin AFTER its inline styles. */

        :root {
            --primary: #00685E;
            --primary-dark: #00685E;
            --primary-light: #00685E;
            --primary-rgb: 0, 104, 94;
            --bg-main: #f0f4f3;
            --bg-pattern: #e8efed;
            --card-bg: #ffffff;
            --border-color: #e2e8f0;
            --text-dark: #1a202c;
            --text-secondary: #64748b;
            --text-muted: #94a3b8;
            --input-bg: #f8fafb;
            --input-focus-bg: #f0fdf9;
            --danger: #dc2626;
            --success: #059669;
            --warning: #d97706;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            min-height: 100vh;
            font-family: 'Cairo', 'Segoe UI', system-ui, sans-serif;
            background: var(--bg-main);
            display: flex;
            position: relative;
            overflow-x: hidden;
        }

        /* ===== الجانب الأيسر - البراند ===== */
        .brand-panel {
            flex: 0 0 42%;
            background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 60%, #003d38 100%);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 50px;
            position: relative;
            overflow: hidden;
        }

            .brand-panel::before {
                content: '';
                position: absolute;
                top: -20%;
                right: -20%;
                width: 60%;
                height: 60%;
                background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
            }

            .brand-panel::after {
                content: '';
                position: absolute;
                bottom: -15%;
                left: -15%;
                width: 50%;
                height: 50%;
                background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 60%);
            }

        /* نمط هندسي */
        .geometric-bg {
            position: absolute;
            inset: 0;
            opacity: 0.03;
            background-image: linear-gradient(30deg, #fff 12%, transparent 12.5%, transparent 87%, #fff 87.5%, #fff), linear-gradient(150deg, #fff 12%, transparent 12.5%, transparent 87%, #fff 87.5%, #fff), linear-gradient(30deg, #fff 12%, transparent 12.5%, transparent 87%, #fff 87.5%, #fff), linear-gradient(150deg, #fff 12%, transparent 12.5%, transparent 87%, #fff 87.5%, #fff);
            background-size: 80px 140px;
            background-position: 0 0, 0 0, 40px 70px, 40px 70px;
        }

        .brand-content {
            position: relative;
            z-index: 2;
            text-align: center;
            color: #fff;
            max-width: 380px;
        }

        .brand-logo {
            width: 90px;
            height: 90px;
            background: rgba(255,255,255,0.12);
            border-radius: 22px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 28px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255,255,255,0.1);
            box-shadow: 0 8px 32px rgba(0,0,0,0.12);
        }

            .brand-logo i {
                font-size: 40px;
                color: #fff;
            }

        .brand-title {
            font-size: 28px;
            font-weight: 800;
            margin-bottom: 10px;
            letter-spacing: -0.3px;
        }

        .brand-subtitle {
            font-size: 15px;
            opacity: 0.9;
            font-weight: 500;
            line-height: 1.7;
            margin-bottom: 40px;
        }

        .brand-features {
            text-align: right;
            width: 100%;
        }

        .feature-item {
            display: flex;
            align-items: center;
            gap: 14px;
            margin-bottom: 14px;
            padding: 14px 18px;
            background: rgba(255,255,255,0.07);
            border-radius: 12px;
            border: 1px solid rgba(255,255,255,0.08);
            transition: all 0.3s ease;
        }

            .feature-item:hover {
                background: rgba(255,255,255,0.12);
                transform: translateX(-4px);
            }

        .feature-icon {
            width: 42px;
            height: 42px;
            background: rgba(255,255,255,0.12);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

            .feature-icon i {
                font-size: 17px;
                color: #fff;
            }

        .feature-text {
            font-size: 13px;
            font-weight: 600;
            opacity: 0.95;
        }

        /* ===== الجانب الأيمن - النموذج ===== */
        .form-panel {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 40px;
            background: var(--bg-main);
        }

        .login-wrapper {
            width: 100%;
            max-width: 420px;
        }

        .login-header {
            text-align: center;
            margin-bottom: 32px;
        }

            .login-header h1 {
                font-size: 24px;
                font-weight: 800;
                color: var(--text-dark);
                margin-bottom: 6px;
            }

            .login-header p {
                font-size: 14px;
                color: var(--text-secondary);
                font-weight: 500;
            }

        .login-card {
            background: var(--card-bg);
            border-radius: 18px;
            padding: 36px;
            box-shadow: 0 4px 6px -1px rgba(0,0,0,0.03), 0 10px 20px -2px rgba(0,0,0,0.04);
            border: 1px solid var(--border-color);
        }

        /* ===== رسائل التنبيه ===== */
        .alert-box {
            padding: 14px 16px;
            border-radius: 10px;
            font-size: 13px;
            font-weight: 600;
            margin-bottom: 22px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

            .alert-box i {
                font-size: 16px;
                flex-shrink: 0;
            }

        .alert-error {
            background: rgba(220, 38, 38, 0.08);
            color: var(--danger);
            border: 1px solid rgba(220, 38, 38, 0.12);
        }

        .alert-success {
            background: rgba(5, 150, 105, 0.08);
            color: var(--success);
            border: 1px solid rgba(5, 150, 105, 0.12);
        }

        /* ===== حقول الإدخال ===== */
        .form-group {
            margin-bottom: 20px;
        }

        .form-label {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
            font-weight: 700;
            color: var(--text-dark);
            margin-bottom: 8px;
        }

            .form-label .req {
                width: 5px;
                height: 5px;
                background: var(--danger);
                border-radius: 50%;
            }

        .input-wrapper {
            position: relative;
        }

        .input-icon {
            position: absolute;
            right: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
            font-size: 15px;
            pointer-events: none;
            transition: color 0.2s;
        }

        .form-input {
            width: 100%;
            height: 48px;
            padding: 12px 44px 12px 14px;
            border: 2px solid var(--border-color);
            border-radius: 10px;
            background: var(--input-bg);
            font-size: 14px;
            font-family: inherit;
            color: var(--text-dark);
            transition: all 0.2s ease;
        }

            .form-input:focus {
                outline: none;
                border-color: var(--primary);
                background: var(--input-focus-bg);
                box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.08);
            }

                .form-input:focus + .input-icon {
                    color: var(--primary);
                }

            .form-input::placeholder {
                color: var(--text-muted);
            }

            .form-input.ltr {
                direction: ltr;
                text-align: right;
            }

        /* حقل كلمة المرور */
        .password-wrapper {
            position: relative;
            display: flex;
        }

            .password-wrapper .form-input {
                padding-left: 48px;
            }

        .password-toggle {
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            width: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: transparent;
            border: none;
            color: var(--text-muted);
            cursor: pointer;
            transition: color 0.2s;
        }

            .password-toggle:hover {
                color: var(--primary);
            }

        /* صف التذكر والنسيان */
        .options-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 4px;
            margin-bottom: 22px;
        }

        .remember-check {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
        }

            .remember-check input {
                width: 18px;
                height: 18px;
                accent-color: var(--primary);
                cursor: pointer;
            }

            .remember-check span {
                font-size: 13px;
                color: var(--text-secondary);
                font-weight: 500;
            }

        .forgot-link {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            font-size: 13px;
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
            transition: all 0.2s;
        }

            .forgot-link:hover {
                color: var(--primary-dark);
                text-decoration: underline;
            }

            .forgot-link i {
                font-size: 11px;
            }

        /* زر تسجيل الدخول */
        .btn-login {
            width: 100%;
            height: 50px;
            border: none;
            border-radius: 10px;
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: #fff;
            font-size: 15px;
            font-weight: 700;
            font-family: inherit;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.25);
        }

            .btn-login:hover:not(:disabled) {
                transform: translateY(-2px);
                box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.35);
            }

            .btn-login:active:not(:disabled) {
                transform: translateY(0);
            }

            .btn-login:disabled {
                opacity: 0.7;
                cursor: not-allowed;
                transform: none;
            }

            .btn-login i {
                font-size: 14px;
            }

        /* رسالة الخطأ */
        .field-error {
            display: block;
            margin-top: 6px;
            font-size: 12px;
            color: var(--danger);
            font-weight: 500;
        }

        /* ===== Footer ===== */
        .login-footer {
            text-align: center;
            margin-top: 24px;
            padding-top: 20px;
            border-top: 1px solid var(--border-color);
        }

            .login-footer p {
                font-size: 12px;
                color: var(--text-muted);
                font-weight: 500;
            }

            .login-footer .brand-name {
                color: var(--primary);
                font-weight: 700;
            }

        /* ===== Mobile Logo ===== */
        .mobile-logo {
            display: none;
            width: 70px;
            height: 70px;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            border-radius: 18px;
            margin: 0 auto 20px;
            align-items: center;
            justify-content: center;
            box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.3);
        }

            .mobile-logo i {
                font-size: 32px;
                color: #fff;
            }

        /* ===== Responsive ===== */
        @@media (max-width: 992px) {
            .brand-panel

        {
            display: none;
        }

        .form-panel {
            padding: 30px 20px;
        }

        .mobile-logo {
            display: flex;
        }

        }

        @@media (max-width: 576px) {
            .form-panel

        {
            padding: 20px 16px;
        }

        .login-card {
            padding: 28px 22px;
        }

        .login-header h1 {
            font-size: 20px;
        }

        .mobile-logo {
            width: 60px;
            height: 60px;
        }

            .mobile-logo i {
                font-size: 26px;
            }

        }

        /* Animation */
        @@keyframes fadeInUp {
            from

        {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }

        }

        .login-card {
            animation: fadeInUp 0.5s ease-out;
        }
