:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --accent-color: #2ecc71;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif, 'Arial', sans-serif;
    background-color: #ecf0f1;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
    direction: rtl;
    text-align: right;
}

.login-container {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    max-width: 1000px;
    width: 100%;
}

.login-banner {
    background: linear-gradient(to bottom, rgba(0,0,0, 0.5), transparent), url('img/logo-img.png') no-repeat ;
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    min-height: 500px;
}

.banner-content {
    text-align: center;
}

.login-illustration {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-top: 20px;
}

.login-form-container {
    padding: 40px;
    display: flex;
    align-items: center;
}

.login-form {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: none;
    box-shadow: none;
}

a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

.form-control {
    padding: 12px;
    border-radius: 8px;
}

.form-control:focus {
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.25);
    border-color: var(--primary-color);
}

@font-face {
    font-family: 'Arabic UI';
    src: local('Arial');
    unicode-range: U+0600-06FF;
}

.form-check {
    padding-right: 1.5em;
    padding-left: 0;
}

.form-check .form-check-input {
    float: right;
    margin-right: -1.5em;
    margin-left: 0;
}

.invalid-feedback {
    text-align: right;
}

@media (max-width: 767.98px) {
    .login-banner {
        min-height: 200px;
        padding: 20px;
    }
    
    .login-form-container {
        padding: 20px;
    }
}

/* Animation for form elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.login-form h2,
.login-form p,
.login-form form,
.login-form > div {
    animation: fadeInUp 0.5s ease-out forwards;
}

.login-form form {
    animation-delay: 0.1s;
}

.login-form > div:last-child {
    animation-delay: 0.2s;
}