        /* Login Page Specific Styles */
        .login-page {
            min-height: 100vh;
            display: flex;
            background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-900) 50%, var(--bg-dark) 100%);
            position: relative;
            overflow: hidden;
        }

        /* Animated Background */
        .login-page::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background:
                radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(16, 185, 129, 0.1) 0%, transparent 40%);
            animation: pulse-bg 8s ease-in-out infinite;
        }

        @keyframes pulse-bg {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.7; }
        }

        /* Floating Shapes */
        .shapes {
            position: absolute;
            width: 100%;
            height: 100%;
            overflow: hidden;
            pointer-events: none;
        }

        .shape {
            position: absolute;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.03);
            animation: float 20s ease-in-out infinite;
        }

        .shape:nth-child(1) {
            width: 400px;
            height: 400px;
            top: -100px;
            right: -100px;
            animation-delay: 0s;
        }

        .shape:nth-child(2) {
            width: 300px;
            height: 300px;
            bottom: -50px;
            left: -50px;
            animation-delay: -5s;
        }

        .shape:nth-child(3) {
            width: 200px;
            height: 200px;
            top: 50%;
            right: 20%;
            animation-delay: -10s;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0) rotate(0deg); }
            50% { transform: translateY(-20px) rotate(10deg); }
        }

        /* Left Panel - Brand */
        .brand-panel {
            flex: 1;
            display: none;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: var(--space-6);
            position: relative;
            z-index: 1;
        }

        @media (min-width: 1024px) {
            .brand-panel {
                display: flex;
            }
        }

        .brand-content {
            text-align: center;
            color: #ffffff;
            max-width: 400px;
        }

        .brand-logo {
            width: 80px;
            height: 80px;
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: var(--radius-xl);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto var(--space-4);
            animation: fadeInDown 0.8s ease;
        }

        .brand-logo svg {
            width: 40px;
            height: 40px;
            fill: #ffffff;
        }

        .brand-title {
            font-family: var(--font-display);
            font-size: var(--text-2xl);
            font-weight: var(--font-extrabold);
            margin-bottom: var(--space-2);
            animation: fadeInUp 0.8s ease 0.2s both;
            color: #ffffff !important;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        }

        .brand-subtitle {
            font-size: var(--text-base);
            margin-bottom: var(--space-4);
            animation: fadeInUp 0.8s ease 0.3s both;
            color: rgba(255, 255, 255, 0.95) !important;
            text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
        }

        .brand-features {
            display: flex;
            flex-direction: column;
            gap: var(--space-2);
            text-align: right;
            animation: fadeInUp 0.8s ease 0.4s both;
            color: #ffffff;
        }

        /* Override body color for brand panel */
        .brand-panel,
        .brand-panel * {
            color: #ffffff;
        }

        .brand-feature {
            display: flex;
            align-items: center;
            gap: var(--space-2);
            padding: var(--space-2) var(--space-3);
            background: rgba(255, 255, 255, 0.12);
            border-radius: var(--radius-md);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .brand-feature-icon {
            width: 28px;
            height: 28px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .brand-feature-icon svg {
            width: 14px;
            height: 14px;
            fill: #ffffff;
        }

        .brand-feature-text {
            font-size: var(--text-xs);
            color: #ffffff !important;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
        }

        /* Right Panel - Login Form */
        .login-panel {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: var(--space-4);
            position: relative;
            z-index: 1;
        }

        @media (min-width: 1024px) {
            .login-panel {
                flex: 0 0 420px;
                background: rgba(255, 255, 255, 0.03);
                backdrop-filter: blur(20px);
                border-right: 1px solid rgba(255, 255, 255, 0.1);
            }
        }

        .login-container {
            width: 100%;
            max-width: 360px;
        }

        .login-card {
            background: white;
            border-radius: var(--radius-xl);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
            overflow: hidden;
            animation: scaleIn 0.5s ease;
        }

        .login-header {
            padding: var(--space-4) var(--space-4);
            text-align: center;
            background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-900) 100%);
            position: relative;
        }

        .login-header::after {
            content: '';
            position: absolute;
            bottom: -14px;
            left: 50%;
            transform: translateX(-50%);
            width: 28px;
            height: 28px;
            background: white;
            border-radius: 50%;
            border: 3px solid var(--primary-500);
        }

        .header-icon {
            width: 48px;
            height: 48px;
            background: white;
            border-radius: var(--radius-lg);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto var(--space-2);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
        }

        .header-icon svg {
            width: 24px;
            height: 24px;
            fill: var(--primary-700);
        }

        .login-header h1 {
            color: white;
            font-size: var(--text-base);
            font-weight: var(--font-bold);
            margin-bottom: 2px;
        }

        .login-header p {
            color: rgba(255, 255, 255, 0.8);
            font-size: var(--text-xs);
        }

        .login-body {
            padding: var(--space-6) var(--space-4) var(--space-4);
        }

        /* User Type Tabs */
        .user-tabs {
            display: flex;
            background: var(--neutral-100);
            border-radius: var(--radius-md);
            padding: 2px;
            margin-bottom: var(--space-3);
        }

        .user-tab {
            flex: 1;
            padding: var(--space-2) var(--space-2);
            border: none;
            background: transparent;
            font-family: var(--font-primary);
            font-size: var(--text-xs);
            font-weight: var(--font-medium);
            color: var(--neutral-500);
            cursor: pointer;
            border-radius: var(--radius-sm);
            transition: all var(--transition-base);
        }

        .user-tab.active {
            background: white;
            color: var(--primary-700);
            box-shadow: var(--shadow-sm);
        }

        .user-tab:hover:not(.active) {
            color: var(--primary-600);
        }

        /* Error Message */
        .error-message {
            display: none;
            align-items: center;
            gap: var(--space-2);
            padding: var(--space-2) var(--space-3);
            background: var(--error-light);
            border: 1px solid #fecaca;
            border-radius: var(--radius-md);
            margin-bottom: var(--space-3);
            color: var(--error);
            font-size: var(--text-xs);
        }

        .error-message.show {
            display: flex;
            animation: shake 0.5s ease;
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-5px); }
            75% { transform: translateX(5px); }
        }

        .error-message svg {
            width: 16px;
            height: 16px;
            fill: currentColor;
            flex-shrink: 0;
        }

        /* Form Styles */
        .form-group {
            margin-bottom: var(--space-3);
        }

        .form-label {
            display: block;
            font-size: var(--text-xs);
            font-weight: var(--font-semibold);
            color: var(--neutral-700);
            margin-bottom: var(--space-1);
        }

        .input-wrapper {
            position: relative;
        }

        .input-wrapper svg {
            position: absolute;
            right: var(--space-3);
            top: 50%;
            transform: translateY(-50%);
            width: 16px;
            height: 16px;
            fill: var(--neutral-400);
            transition: fill var(--transition-fast);
        }

        .form-input {
            width: 100%;
            padding: var(--space-2) var(--space-8) var(--space-2) var(--space-3);
            font-family: var(--font-primary);
            font-size: var(--text-sm);
            color: var(--neutral-800);
            background: var(--neutral-50);
            border: 1px solid var(--neutral-200);
            border-radius: var(--radius-md);
            transition: all var(--transition-fast);
        }

        .form-input:hover {
            border-color: var(--neutral-300);
        }

        .form-input:focus {
            outline: none;
            border-color: var(--primary-500);
            background: white;
            box-shadow: 0 0 0 4px var(--primary-100);
        }

        .form-input:focus + svg,
        .input-wrapper:focus-within svg {
            fill: var(--primary-500);
        }

        .form-input::placeholder {
            color: var(--neutral-400);
        }

        /* Remember Me */
        .remember-row {
            display: flex;
            align-items: center;
            margin-bottom: var(--space-6);
        }

        .remember-me {
            display: flex;
            align-items: center;
            gap: var(--space-2);
            cursor: pointer;
        }

        .remember-me input {
            width: 18px;
            height: 18px;
            accent-color: var(--primary-600);
            cursor: pointer;
        }

        .remember-me span {
            font-size: var(--text-sm);
            color: var(--neutral-600);
        }

        /* Login Button */
        .login-btn {
            width: 100%;
            padding: var(--space-4);
            background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
            color: white;
            border: none;
            border-radius: var(--radius-lg);
            font-family: var(--font-primary);
            font-size: var(--text-base);
            font-weight: var(--font-semibold);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: var(--space-2);
            transition: all var(--transition-base);
            box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
        }

        .login-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
        }

        .login-btn:active {
            transform: translateY(0);
        }

        .login-btn svg {
            width: 20px;
            height: 20px;
            fill: currentColor;
        }

        .login-btn.loading {
            pointer-events: none;
            opacity: 0.85;
        }

        /* Divider */
        .divider {
            display: flex;
            align-items: center;
            margin: var(--space-6) 0;
            color: var(--neutral-400);
            font-size: var(--text-xs);
        }

        .divider::before,
        .divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: var(--neutral-200);
        }

        .divider span {
            padding: 0 var(--space-3);
        }

        /* Admin Hint */
        .admin-hint {
            text-align: center;
            padding: var(--space-4);
            background: var(--secondary-50);
            border-radius: var(--radius-lg);
            border: 1px solid var(--secondary-200);
        }

        .admin-hint p {
            font-size: var(--text-sm);
            color: var(--secondary-700);
            margin-bottom: var(--space-2);
        }

        .admin-hint p:last-child {
            margin-bottom: 0;
        }

        .admin-hint code {
            display: inline-block;
            padding: var(--space-1) var(--space-2);
            background: var(--secondary-100);
            border-radius: var(--radius-sm);
            font-family: var(--font-mono);
            font-size: var(--text-xs);
            color: var(--secondary-800);
        }

        /* Footer */
        .login-footer {
            text-align: center;
            padding: var(--space-4) var(--space-6);
            background: var(--neutral-50);
            border-top: 1px solid var(--neutral-100);
        }

        .login-footer p {
            font-size: var(--text-xs);
            color: var(--neutral-500);
            margin: 0;
        }

        /* Success Overlay */
        .success-overlay {
            position: fixed;
            inset: 0;
            background: linear-gradient(135deg, var(--secondary-500) 0%, var(--secondary-700) 100%);
            display: none;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            z-index: 1000;
            color: white;
        }

        .success-overlay.show {
            display: flex;
            animation: fadeIn 0.3s ease;
        }

        .success-icon {
            width: 100px;
            height: 100px;
            background: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: var(--space-6);
            animation: scaleIn 0.5s ease;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
        }

        .success-icon svg {
            width: 50px;
            height: 50px;
            fill: var(--secondary-600);
        }

        .success-overlay h2 {
            font-size: var(--text-2xl);
            font-weight: var(--font-bold);
            margin-bottom: var(--space-2);
        }

        .success-overlay p {
            font-size: var(--text-lg);
            opacity: 0.9;
            margin: 0;
        }

        /* Spinner */
        .spinner {
            width: 22px;
            height: 22px;
            border: 3px solid rgba(255, 255, 255, 0.3);
            border-top-color: white;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        /* ============================================
           SIDEBAR NAVIGATION - شريط التنقل الجانبي
           ============================================ */

        /* زر فتح القائمة (Hamburger) */
        .nav-toggle {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 1001;
            width: 50px;
            height: 50px;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 14px;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 5px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
        }

        .nav-toggle:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: scale(1.05);
            box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
        }

        .nav-toggle span {
            display: block;
            width: 22px;
            height: 2.5px;
            background: #ffffff;
            border-radius: 2px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .nav-toggle.active span:nth-child(1) {
            transform: rotate(45deg) translate(5px, 5px);
        }

        .nav-toggle.active span:nth-child(2) {
            opacity: 0;
            transform: translateX(10px);
        }

        .nav-toggle.active span:nth-child(3) {
            transform: rotate(-45deg) translate(5px, -5px);
        }

        /* خلفية معتمة عند فتح القائمة */
        .nav-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(4px);
            z-index: 999;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .nav-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        /* الشريط الجانبي */
        .sidebar-nav {
            position: fixed;
            top: 0;
            right: -320px;
            width: 300px;
            max-width: 85vw;
            height: 100vh;
            background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 58, 138, 0.98) 100%);
            backdrop-filter: blur(30px);
            border-left: 1px solid rgba(255, 255, 255, 0.1);
            z-index: 1000;
            transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            flex-direction: column;
            box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
        }

        .sidebar-nav.active {
            right: 0;
        }

        /* رأس الشريط الجانبي */
        .sidebar-header {
            padding: 24px 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            text-align: center;
        }

        .sidebar-logo {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(99, 102, 241, 0.3) 100%);
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 12px;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .sidebar-logo svg {
            width: 32px;
            height: 32px;
            fill: #ffffff;
        }

        .sidebar-title {
            color: #ffffff;
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 4px;
        }

        .sidebar-subtitle {
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.75rem;
        }

        /* روابط التنقل */
        .nav-links {
            flex: 1;
            padding: 20px 12px;
            overflow-y: auto;
        }

        .nav-section {
            margin-bottom: 24px;
        }

        .nav-section-title {
            color: rgba(255, 255, 255, 0.4);
            font-size: 0.7rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            padding: 0 12px;
            margin-bottom: 10px;
        }

        .nav-link {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 14px 16px;
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            border-radius: 12px;
            margin-bottom: 4px;
            transition: all 0.2s ease;
            position: relative;
            overflow: hidden;
        }

        .nav-link::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(90deg, rgba(59, 130, 246, 0.2) 0%, transparent 100%);
            opacity: 0;
            transition: opacity 0.2s ease;
        }

        .nav-link:hover {
            color: #ffffff;
            background: rgba(255, 255, 255, 0.08);
        }

        .nav-link:hover::before {
            opacity: 1;
        }

        .nav-link.active {
            color: #ffffff;
            background: linear-gradient(90deg, rgba(59, 130, 246, 0.3) 0%, rgba(99, 102, 241, 0.15) 100%);
        }

        .nav-link.active::after {
            content: '';
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 3px;
            height: 60%;
            background: linear-gradient(180deg, #60a5fa 0%, #818cf8 100%);
            border-radius: 3px 0 0 3px;
        }

        .nav-link-icon {
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: all 0.2s ease;
        }

        .nav-link:hover .nav-link-icon {
            background: rgba(59, 130, 246, 0.3);
            transform: scale(1.05);
        }

        .nav-link-icon svg {
            width: 20px;
            height: 20px;
            fill: currentColor;
        }

        .nav-link-content {
            flex: 1;
        }

        .nav-link-title {
            font-size: 0.95rem;
            font-weight: 600;
            margin-bottom: 2px;
        }

        .nav-link-desc {
            font-size: 0.7rem;
            color: rgba(255, 255, 255, 0.5);
        }

        .nav-link-badge {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            color: #000;
            font-size: 0.65rem;
            font-weight: 700;
            padding: 3px 8px;
            border-radius: 20px;
        }

        /* تذييل الشريط الجانبي */
        .sidebar-footer {
            padding: 16px 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(0, 0, 0, 0.2);
        }

        .sidebar-footer-links {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-bottom: 12px;
        }

        .sidebar-footer-link {
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.75rem;
            text-decoration: none;
            transition: color 0.2s ease;
        }

        .sidebar-footer-link:hover {
            color: #60a5fa;
        }

        .sidebar-version {
            text-align: center;
            color: rgba(255, 255, 255, 0.3);
            font-size: 0.65rem;
        }

        /* Social Links في التذييل */
        .sidebar-social {
            display: flex;
            justify-content: center;
            gap: 12px;
            margin-top: 12px;
        }

        .social-link {
            width: 36px;
            height: 36px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            transition: all 0.2s ease;
        }

        .social-link:hover {
            background: rgba(59, 130, 246, 0.3);
            color: #ffffff;
            transform: translateY(-2px);
        }

        .social-link svg {
            width: 18px;
            height: 18px;
            fill: currentColor;
        }

        /* تعديل موقع أزرار التحكم العلوية */
        .login-top-controls {
            position: fixed;
            top: 20px;
            left: 20px;
            right: 90px;
            display: flex;
            justify-content: flex-start;
            gap: 10px;
            z-index: 100;
        }

        /* Responsive للشاشات الكبيرة */
        @media (min-width: 768px) {
            .sidebar-nav {
                width: 320px;
            }
        }
