* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(to top, #e0e0ff 0%, #fff 100%);
    /* background: linear-gradient(135deg, #e0e0ff 0%, #f8f9f9 100%); */
    /* background: linear-gradient(135deg, #e0e0ff 0%, #fff 100%); */
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    position: relative;
}
 
.header-logos {
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: fixed;
    top: 10px;
    left: 0;
    z-index: 10;
    padding: 0 60px;
    pointer-events: none;
}

.logo-ar, .logo-en {
    width: 120px;
    height: auto;
    pointer-events: auto;
}

.login-container {
    background: none;
    padding: 40px;
    border-radius: 20px;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); */
    width: 100%;
    max-width: 400px;
    margin: auto;
    animation: fadeIn 0.6s ease-out;
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* لجعلها في منتصف الشاشة تماماً */
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    justify-content: center;
    min-height: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.login-header h1 {
    color: #2d3748;
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.login-header p {
    color: #718096;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7d2ae8;
    font-size: 1.2rem;
}

.form-input {
    width: 100%;
    padding: 15px 45px 15px 15px;
    border: 2px solid #7d2ae8;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #e0e0ff00;
}

.form-input:focus {
    border-color: #7d2ae8;
    outline: none;
    /* box-shadow: 0 5px 5px rgba(125, 42, 232, 0.4); */
}

.form-input::placeholder {
    color: #a0aec0;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.95rem;
    color: #718096;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #e0e0ff;
}

.forgot-password {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #2d3748;
}

.login-button {
    width: 100%;
    padding: 15px;
    background: #e0e0ff;
    border: 2px solid #7d2ae8;
    border-radius: 12px;
    color: #7d2ae8;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(125, 42, 232, 0.4);
    /* background: none; */
}

.register-link {
    text-align: center;
    margin-top: 25px;
    font-size: 0.95rem;
    color: #718096;
}

.register-link a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 600;
    margin-right: 5px;
    transition: color 0.3s ease;
}

.register-link a:hover {
    color: #2d3748;
}

@media (max-width: 600px) {
    .header-logos {
        position: relative;
        padding: 20px 10px;
        margin-bottom: 20px;
        top: 0;
    }
    .logo-ar {
        width: 100px;
        margin: 0 auto;
    }
    .login-container {
        padding: 20px;
        margin-top: 0;
        min-height: auto;
        border-radius: 12px;
    }
}


@media (max-width: 30000px) {
    .header-logos {
        position: relative;
        padding: 20px 10px;
        margin-bottom: 20px;
        top: 0;
    }
    .logo-ar {
        width: 100px;
        margin: 0 auto;
    }
    .login-container {
        padding: 20px;
        margin-top: 0;
        min-height: auto;
        border-radius: 12px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-logos {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 20px auto;
    padding: 0 10px;
}

.logo-ar {
    width: 250px;
    height: auto;
    /* الشعار العربي في اليمين */
    order: 1;
}

.logo-en {
    width: 400px;
    height: auto;
    /* الشعار الإنجليزي في اليسار */
    order: 2;
}

.error-message {
    background-color: #fff3f3;
    color: #dc3545;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #ffcdd2;
    text-align: center;
    font-size: 14px;
}

.password-group .fa-lock {
    right: 15px;
}

.password-group .toggle-password {
    right: auto;
    left: 15px;
    cursor: pointer;
}

.language-switch {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.lang-btn {
    background: none;
    border: 2px solid #7d2ae8;
    color: #7d2ae8;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: #7d2ae8;
    color: white;
    box-shadow: 0 2px 10px rgba(125, 42, 232, 0.2);
}

.lang-btn i {
    font-size: 16px;
}

@media (max-width: 600px) {
    .language-switch {
        top: 10px;
        left: 10px;
    }
    
    .lang-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* RTL Styles */
html[dir="rtl"] .form-group i {
    right: 15px;
    left: auto;
}

html[dir="rtl"] .form-input {
    padding: 15px 45px 15px 45px;
    text-align: center;
}

html[dir="rtl"] .password-group .toggle-password {
    right: auto;
    left: 15px;
}

/* LTR Styles */
html[dir="ltr"] .form-group i {
    left: 15px;
    right: auto;
}

html[dir="ltr"] .form-input {
    padding: 15px 45px 15px 45px;
    text-align: center;
}

html[dir="ltr"] .password-group .toggle-password {
    left: auto;
    right: 15px;
}

html[dir="ltr"] .password-group .fa-lock {
    left: 15px;
    right: auto;
}

/* تعديل موضع زر تغيير اللغة */
html[dir="ltr"] .language-switch {
    right: 20px;
    left: auto;
}

@media (max-width: 600px) {
    html[dir="ltr"] .language-switch {
        right: 10px;
        left: auto;
    }
}

.forgot-link {
    color: #7d2ae8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.forgot-link:hover {
    color: #2d3748;

}

.form-options {
    text-align: center;
    margin-top: 20px;
}