
        body {
            height: 100vh;
            margin: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            font-family: 'Arial', sans-serif;
        }

        .login-container {
            display: flex;
            max-width: 800px;
            width: 90%;
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }

        .logo-section {
            flex: 1;
            background: #0056b3;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 30px;
            color: white;
        }

        .logo-section img {
            max-width: 80%;
            margin-bottom: 20px;
        }

        .logo-section h2 {
            margin-bottom: 10px;
            text-align: center;
        }

        .logo-section p {
            text-align: center;
            font-size: 14px;
            opacity: 0.9;
        }

        .form-section {
            flex: 1;
            padding: 40px;
        }

        .form-section h2 {
            color: #333;
            margin-bottom: 30px;
            text-align: center;
            font-size: 24px;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            color: #555;
            font-weight: bold;
            font-size: 14px;
        }

        .form-group select,
        .form-group input[type="password"],
        .form-group select#branch_id {
            width: 100%;
            padding: 12px 15px;
            border-radius: 8px;
            border: 1px solid #ddd;
            font-size: 14px;
            transition: all 0.3s;
            background: #f9f9f9;
        }

        .form-group select:focus,
        .form-group input[type="password"]:focus,
        .form-group select#branch_id:focus {
            outline: none;
            border-color: #0056b3;
            box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
            background: white;
        }

        .user-branch-info {
            background: #e8f5e9;
            padding: 10px 15px;
            border-radius: 8px;
            margin-top: 5px;
            font-size: 13px;
            color: #2e7d32;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .no-branch-info {
            background: #ffebee;
            color: #c62828;
        }

        .submit-btn {
            width: 100%;
            padding: 12px;
            border-radius: 8px;
            border: none;
            background: linear-gradient(135deg, #0056b3 0%, #004494 100%);
            color: white;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
            margin-top: 20px;
        }

        .submit-btn:hover {
            background: linear-gradient(135deg, #004494 0%, #003375 100%);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
        }

        .submit-btn:active {
            transform: translateY(0);
        }

        .branch-selector {
            background: #f0f7ff;
            padding: 15px;
            border-radius: 8px;
            margin-top: 20px;
            border-left: 4px solid #0056b3;
        }

        .branch-selector label {
            color: #0056b3;
            font-size: 15px;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        /* تنسيق خيارات القائمة المنسدلة */
        option {
            padding: 10px;
            font-size: 14px;
        }

        option[value=""] {
            color: #999;
        }

        /* رسائل التنبيه */
        .alert {
            padding: 12px 15px;
            border-radius: 8px;
            margin-bottom: 20px;
            display: none;
        }

        .alert-error {
            background: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }

        .alert-success {
            background: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }

        /* تنسيق للشاشات الصغيرة */
        @media (max-width: 768px) {
            .login-container {
                flex-direction: column;
                max-width: 400px;
            }
            
            .logo-section {
                padding: 20px;
            }
            
            .form-section {
                padding: 30px 20px;
            }
        }

        /* تأثيرات إضافية */
        .form-group select option:checked {
            background: linear-gradient(135deg, #0056b3 0%, #004494 100%);
            color: white;
        }

        .form-group select option:hover {
            background: #e0e0e0;
        }

        /* تنسيق أيقونات Font Awesome */
        .fa-building, .fa-user, .fa-lock, .fa-code-branch {
            color: #0056b3;
        }

        /* مؤشر الانتظار */
        .loading {
            display: none;
            text-align: center;
            margin-top: 10px;
            color: #666;
        }

        .spinner {
            border: 3px solid #f3f3f3;
            border-top: 3px solid #0056b3;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            animation: spin 1s linear infinite;
            display: inline-block;
            margin-right: 10px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }