  :root {
            --primary-color: #398787;     /* اللون الأساسي - أزرق مخضر */
            --dark-color: #082b35;        /* اللون الداكن - أزرق داكن */
            --accent-color: #e6b325;      /* اللون المميز - ذهبي دافئ */
            --light-bg: #f8fafb;          /* خلفية فاتحة */
            --gradient-bg: linear-gradient(135deg, #082b35 0%, #1a5961 50%, #398787 100%);
            --glass-bg: rgba(255, 255, 255, 0.92);
            --shadow-color: rgba(8, 43, 53, 0.15);
        }

        * { 
            box-sizing: border-box; 
            margin: 0; 
            padding: 0; 
            font-family: 'Tajawal', sans-serif; 
        }

        body {
            background: var(--gradient-bg);
            min-height: 100vh; /* تغيير من height إلى min-height */
            display: flex;
            align-items: center;
            justify-content: center;
            overflow-y: auto; /* تغيير من hidden إلى auto للسماح بالتمرير */
            margin: 0;
            padding: 15px; /* إضافة padding للشاشات الصغيرة */
        }

        /* تأثيرات خلفية */
        .bg-pattern {
            position: fixed; /* تغيير من absolute إلى fixed */
            width: 100%;
            height: 100%;
            opacity: 0.1;
            background-image: 
                radial-gradient(var(--accent-color) 2px, transparent 3px),
                radial-gradient(var(--primary-color) 2px, transparent 3px);
            background-size: 80px 80px;
            background-position: 0 0, 40px 40px;
            z-index: 0;
            pointer-events: none; /* لمنع التفاعل مع الخلفية */
        }

        .floating-elements {
            position: fixed; /* تغيير من absolute إلى fixed */
            width: 100%;
            height: 100%;
            z-index: 0;
            pointer-events: none;
        }

        .floating-elements div {
            position: absolute;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            backdrop-filter: blur(2px);
        }

        .floating-elements div:nth-child(1) {
            width: 150px;
            height: 150px;
            top: 10%;
            right: 5%;
            animation: float 25s infinite linear;
        }

        .floating-elements div:nth-child(2) {
            width: 80px;
            height: 80px;
            bottom: 20%;
            left: 10%;
            animation: float 20s infinite linear reverse;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0) rotate(0deg); }
            50% { transform: translateY(-20px) rotate(180deg); }
        }

        /* حاوية تسجيل الدخول */
        .login-wrapper {
            width: 100%;
            max-width: 1100px;
            height: auto; /* تغيير من 750px إلى auto */
            min-height: auto;
            display: flex;
            background: var(--glass-bg);
            border-radius: 30px;
            overflow: visible; /* تغيير من hidden إلى visible */
            box-shadow: 0 25px 70px rgba(8, 43, 53, 0.3);
            position: relative;
            z-index: 1;
            margin: 1.5rem;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        /* الجانب الجمالي مع صورة شالية */
        .aside-banner {
            flex: 1.2;
            background: linear-gradient(rgba(8, 43, 53, 0.7), rgba(57, 135, 135, 0.6)), 
                        url('https://images.unsplash.com/photo-1518780664697-55e3ad937233?auto=format&fit=crop&w=800&q=80') center/cover;
            position: relative;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: 3rem;
            color: #fff;
            overflow: hidden;
        }

        .aside-banner::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(8, 43, 53, 0.8) 0%, transparent 100%);
        }

        .logo-area {
            position: relative;
            z-index: 2;
            display: flex;
            align-items: center;
            gap: 0.8rem;
            font-size: 1.4rem;
            font-weight: 800;
            margin-bottom: 2rem;
        }

        .logo-area i {
            color: var(--accent-color);
            font-size: 2rem;
        }

        .banner-content {
            position: relative;
            z-index: 2;
            margin-top: auto;
        }

        .banner-content h2 {
            font-size: 2.6rem;
            font-weight: 900;
            line-height: 1.2;
            margin-bottom: 1.5rem;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        }

        .banner-content p {
            font-size: 1.1rem;
            line-height: 1.6;
            opacity: 0.9;
            max-width: 90%;
        }

        .features {
            position: relative;
            z-index: 2;
            display: flex;
            flex-wrap: wrap;
            gap: 1.5rem;
            margin-top: 2rem;
        }

        .feature {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.9rem;
            background: rgba(255, 255, 255, 0.15);
            padding: 0.5rem 1rem;
            border-radius: 20px;
            backdrop-filter: blur(5px);
        }

        .feature i {
            color: var(--accent-color);
        }

        /* منطقة تسجيل الدخول */
        .login-main {
            flex: 1;
            padding: 3.5rem 3rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .form-header {
            margin-bottom: 2.5rem;
        }

        .form-header h1 {
            font-size: 2.2rem;
            font-weight: 800;
            color: var(--dark-color);
            margin-bottom: 0.7rem;
            position: relative;
            display: inline-block;
        }

        .form-header h1::after {
            content: '';
            position: absolute;
            bottom: -5px;
            right: 0;
            width: 60px;
            height: 4px;
            background: var(--accent-color);
            border-radius: 2px;
        }

        .form-header p {
            color: #666;
            font-size: 1rem;
            line-height: 1.5;
        }

        /* حقول الإدخال */
        .input-field {
            position: relative;
            margin-bottom: 1.8rem;
        }

        .input-field i {
            position: absolute;
            right: 1.2rem;
            top: 50%;
            transform: translateY(-50%);
            color: #aaa;
            transition: 0.3s;
            font-size: 1.1rem;
        }

        .input-field input {
            width: 100%;
            padding: 1.2rem 3.5rem 1.2rem 1.2rem;
            border: 2px solid #e6f0f0;
            border-radius: 16px;
            outline: none;
            font-size: 1rem;
            background: #f8fcfc;
            transition: all 0.3s ease;
            color: var(--dark-color);
        }

        .input-field input:focus {
            border-color: var(--primary-color);
            background: #fff;
            box-shadow: 0 10px 25px rgba(57, 135, 135, 0.12);
        }

        .input-field input:focus + i {
            color: var(--primary-color);
        }

        /* تسميات الحقول */
        .input-label {
            display: block;
            margin-bottom: 0.5rem;
            color: var(--dark-color);
            font-weight: 600;
            font-size: 0.95rem;
        }

        /* خيارات إضافية */
        .meta-options {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2.5rem;
            font-size: 0.9rem;
        }

        .remember-me {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: #666;
            cursor: pointer;
        }

        .remember-me input {
            accent-color: var(--primary-color);
            width: 18px;
            height: 18px;
            cursor: pointer;
        }

        .forgot-password {
            color: var(--primary-color);
            font-weight: 700;
            text-decoration: none;
            transition: 0.3s;
            position: relative;
        }

        .forgot-password:hover {
            color: var(--dark-color);
            text-decoration: underline;
        }

        /* زر تسجيل الدخول */
        .btn-login {
            width: 100%;
            padding: 1.2rem;
            border: none;
            border-radius: 16px;
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
            color: #fff;
            font-size: 1.1rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.4s ease;
            box-shadow: 0 15px 30px rgba(8, 43, 53, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.7rem;
        }

        .btn-login:hover {
            transform: translateY(-3px);
            box-shadow: 0 20px 40px rgba(8, 43, 53, 0.3);
        }

        .btn-login:active {
            transform: translateY(-1px);
        }

        .btn-login i {
            font-size: 1.2rem;
        }

        /* الفاصل */
        .divider {
            text-align: center;
            margin: 2rem 0;
            position: relative;
            color: #bbb;
            font-size: 0.85rem;
        }

        .divider::before, .divider::after {
            content: '';
            position: absolute;
            top: 50%;
            width: 30%;
            height: 1px;
            background: linear-gradient(90deg, transparent, #ddd, transparent);
        }

        .divider::before {
            left: 0;
        }

        .divider::after {
            right: 0;
        }

        /* تسجيل الدخول عبر وسائل التواصل */
        .social-group {
            display: flex;
            justify-content: center;
            gap: 1.2rem;
        }

        .social-item {
            width: 55px;
            height: 55px;
            border-radius: 16px;
            border: 2px solid #eef5f5;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            color: var(--dark-color);
            transition: all 0.3s ease;
            cursor: pointer;
            background: #fff;
        }

        .social-item:hover {
            border-color: var(--primary-color);
            color: var(--primary-color);
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(57, 135, 135, 0.15);
        }

        .social-item.facebook:hover {
            color: #1877F2;
            border-color: #1877F2;
        }

        .social-item.google:hover {
            color: #DB4437;
            border-color: #DB4437;
        }

        .social-item.apple:hover {
            color: #000;
            border-color: #000;
        }

        /* رابط التسجيل */
        .register-link {
            text-align: center;
            margin-top: 2.5rem;
            color: #666;
            font-size: 0.95rem;
        }

        .register-link a {
            color: var(--primary-color);
            font-weight: 800;
            text-decoration: none;
            margin-right: 0.3rem;
            transition: 0.3s;
        }

        .register-link a:hover {
            color: var(--dark-color);
            text-decoration: underline;
        }

        /* قسم رسائل الخطأ */
        .errors-container {
            margin-bottom: 2rem;
            animation: slideDown 0.5s ease-out;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* الرسالة التحذيرية */
        .alert-message {
            border-radius: 12px;
            border: none;
            padding: 1rem 1.5rem;
            display: flex;
            align-items: center;
            gap: 12px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .alert-warning {
            background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
            border-right: 5px solid #ffc107;
            color: #856404;
        }

        .alert-warning .alert-icon {
            color: #ffc107;
            font-size: 1.5rem;
            flex-shrink: 0;
        }

        .alert-content {
            flex: 1;
        }

        .alert-title {
            font-weight: 700;
            margin-bottom: 0.3rem;
            font-size: 1.1rem;
            color: #856404;
        }

        .alert-message p {
            margin-bottom: 0;
            line-height: 1.5;
            color: #856404;
            opacity: 0.9;
        }

        /* تأثيرات إضافية */
        .alert-warning:hover {
            box-shadow: 0 8px 20px rgba(255, 193, 7, 0.2);
            transform: translateY(-2px);
            transition: all 0.3s ease;
        }

        /* زر الإغلاق (اختياري) */
        .close-alert {
            background: none;
            border: none;
            color: #856404;
            opacity: 0.6;
            cursor: pointer;
            padding: 0;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.3s;
            flex-shrink: 0;
        }

        .close-alert:hover {
            background: rgba(133, 100, 4, 0.1);
            opacity: 1;
        }

        /* أنيماشين الإخفاء */
        .hide-alert {
            animation: slideUp 0.5s ease-out forwards;
        }

        @keyframes slideUp {
            from {
                opacity: 1;
                transform: translateY(0);
            }
            to {
                opacity: 0;
                transform: translateY(-20px);
                display: none;
            }
        }

        /* =========================================
           تصميم متجاوب للهاتف المحمول
           ========================================= */
        @media (max-width: 992px) {
            .login-wrapper {
                flex-direction: column;
                height: auto;
                max-width: 500px;
                margin: 1rem;
            }

            .aside-banner {
                height: 280px;
                padding: 2rem;
                border-radius: 0 0 30px 30px;
            }

            .aside-banner h2 {
                font-size: 2rem;
            }

            .features {
                display: none;
            }

            .login-main {
                padding: 2.5rem 2rem;
                border-radius: 30px 30px 0 0;
                margin-top: -30px;
                position: relative;
                z-index: 10;
                background: var(--glass-bg);
            }
        }

        @media (max-width: 576px) {
            body {
                padding: 10px;
                align-items: flex-start;
            }

            .login-wrapper {
                margin: 0.5rem 0;
                border-radius: 20px;
            }

            .login-main {
                padding: 2rem 1.5rem;
            }

            .form-header h1 {
                font-size: 1.8rem;
            }

            .aside-banner {
                height: 220px;
                padding: 1.5rem;
            }

            .aside-banner h2 {
                font-size: 1.7rem;
            }

            .meta-options {
                flex-direction: column;
                gap: 1rem;
                align-items: flex-start;
            }

            .social-group {
                gap: 0.8rem;
                flex-wrap: wrap;
            }

            .social-item {
                width: 50px;
                height: 50px;
            }
        }

        /* تحسينات إضافية للتمرير */
        @media (max-height: 800px) {
            .login-wrapper {
                margin: 2rem auto;
            }
            
            .login-main {
                padding: 2rem 2.5rem;
            }
        }

        /* إضافة شريط تمرير أنيق */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        ::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb {
            background: var(--primary-color);
            border-radius: 10px;
            transition: 0.3s;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--dark-color);
        }