/* --- Global Styles & Reset (نفس تنسيقات صفحة التسجيل) --- */
:root {
    --color-blue: #1976D2;      /* Knowledge Blue */
    --color-green: #4CAF50;     /* Future Green */
    --color-orange: #FF5722;    /* Insight Orange */
    --color-white: #FFFFFF;
    --color-grey: #616161;
    --color-light-grey: #F5F5F5;
    --color-text-dark: #333333;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--color-white);
    color: var(--color-text-dark);
    direction: rtl; 
    text-align: right;
    min-height: 100vh;
}

.login-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* --- 1. Visual Section (الثلث الأيمن - 33.33%) --- */
.visual-section {
    flex: 1; 
    max-width: 33.33%; 
    /* نفس التدرج اللوني الجذاب */
    background: linear-gradient(135deg, var(--color-blue), var(--color-green));
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    /* رفع المحتوى للأعلى */
    align-items: flex-start;
    justify-content: flex-start;
    padding: 40px 30px;
    position: relative;
    text-align: center;
}

.logo-header {
    position: absolute;
    top: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-header img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
}

.logo-text {
    font-size: 20px;
    font-weight: 900;
    color: var(--color-white);
}

.animation-video {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 5px;
    /* رفع الفيديو للأعلى */
    margin-top: 80px; 
    align-self: center; 
}

.slogan-text {
    font-size: 18px;
    font-weight: 400;
    margin-top: 20px;
    text-align: center;
    justify-content: center;
}

/* --- 2. Form Section (الثلثان الأيسران - 66.66%) --- */
.form-section {
    flex: 2; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px 10%; 
    max-width: 66.66%;
    margin: 0 auto;
}

.form-section h2 {
    font-size: 36px;
    color: var(--color-blue);
    margin-bottom: 5px;
}

.sub-heading {
    font-size: 16px;
    color: var(--color-grey);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text-dark);
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
    outline: none;
}

/* رابط نسيت كلمة المرور */
.forgot-password {
    text-align: left; /* المحاذاة لليسار في RTL تعني أن الرابط سيكون على اليمين */
    margin-bottom: 20px;
}

.forgot-password a {
    color: var(--color-grey);
    font-size: 14px;
    transition: color 0.3s;
}

.forgot-password a:hover {
    color: var(--color-blue);
    text-decoration: underline;
}

/* زر تسجيل الدخول */
.btn-login-submit {
    width: 100%;
    background-color: var(--color-blue); /* استخدام اللون الأزرق للزر الرئيسي */
    color: var(--color-white);
    padding: 15px;
    font-size: 18px;
    margin-top: 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-login-submit:hover {
    background-color: green; 
}

/* رابط الاشتراك */
.register-link {
    margin-top: 25px;
    font-size: 14px;
    color: var(--color-grey);
    text-align: center;
}

.register-link a {
    color: var(--color-orange); /* استخدام اللون البرتقالي لرابط التسجيل الجديد */
    font-weight: 700;
}

/* --- Responsive Adjustments (استعادة التنسيق العمودي في الجوال) --- */
@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
    }

    .visual-section {
        flex: none;
        max-width: 100%;
        height: 250px;
        padding: 20px;
        order: 1; 
    }
    
    .logo-header {
        top: 20px;
        right: 20px;
    }

    .animation-video {
        display: none; 
    }

    .form-section {
        flex: none;
        max-width: 100%;
        padding: 40px 5%;
        order: 2;
    }

    .slogan-text {
    font-size: 18px;
    font-weight: 400;
    margin-top: 90px;
    text-align: center;
    justify-content: center;
}

}
