:root {
    --primary: #5E7EBF;
    --primary-dark: #304F7C;
    --primary-light: #00CBD5;
    --secondary: #CCA556;
    --secondary-light: #AC975A;
    --accent: #B5AB79;
    --light: #f8f9fa;
  
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    --shade-1: #5E7EBF;
    --shade-2: #304F7C;
    --shade-3: #00CBD5;
    --shade-4: #5E7EBF;
    --shade-5: #304F7C;
    --gradient-dark-original: linear-gradient(to bottom, var(--shade-1), var(--shade-2), var(--shade-3), var(--shade-4), var(--shade-5));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}





.login-section {

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.image-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 160px;
    color: white;
    text-align: center;
}

.login-form {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.8s ease;
}

.login-form h2 {
    color: var(--primary-dark);
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.login-form h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 100px;
    height: 3px;
     background: linear-gradient(90deg, #5E7EBF, #00CBD5);
    border-radius: 10px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--primary);
    font-weight: 500;
}


  



.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(204, 165, 86, 0.3);
}

.btn {
    display: block;
    width: 100%;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
 
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    margin-top: 20px;
}


.form-footer {
    margin-top: 30px;
    text-align: center;
}

.form-footer p {
    margin-bottom: 10px;
    color: var(--mid);
}

.form-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.form-footer a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.welcome-message {
    max-width: 600px;
    animation: fadeIn 1s ease;
}

.welcome-message h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.welcome-message p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 992px) {
    .menu-toggle {
        display: block !important;
        z-index: 1000;
        font-size: 24px;
        color: white; 
    }
    
    /* نقوم بتحديث الـ links selector ليعمل بشكل صحيح في صفحة الدخول الموروثة */
    .header nav .links { 
        top: 80px; /* تزامن مع قيمة top-scroll-blocker في mahmoud.css */
        position: fixed; 
        display: none;
    }
    
    /* ... الأكواد الأخرى ... */
    
    .nav-links {
     /* ... لا تحتاج لتعديل هذه الكتلة، فقط أضف قاعدة menu-toggle */
        display: none; 
        position: absolute;
        top: 70px;
        right: 0;
        background: linear-gradient(to bottom, var(--primary), var(--primary-dark));
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    .image-section,
    .login-section {
        flex: none;
        width: 100%;
    }

    .image-section {
        padding: 40px 20px;
    }

    .login-form {
        max-width: 600px;
    }

    .welcome-message h2 {
        font-size: 2rem;
    }

    .welcome-message p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
   
    .login-form {
        padding: 30px 20px;
    }

    .login-form h2 {
        font-size: 1.5rem;
    }

    .welcome-message h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
  

    .login-section,
    .image-section {
        padding: 20px 10px;
    }

    .welcome-message h2 {
        font-size: 1.5rem;
    }

    .welcome-message p {
        font-size: 0.9rem;
    }

    .login-form h2 {
        font-size: 1.3rem;
    }

    .form-group label,
    .form-group input,
    .form-footer a {
        font-size: 0.9rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 1rem;
    }
}