:root {
    --primary-color: #007bff;
    --primary-dark: #0056b3;
    --secondary-color: #00bfa6;
    --text-dark: #333;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
}
@font-face {
    font-family: 'Bahij Titr';
    src: url('/fonts/Bahij Badiya-Bold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
     font-family: 'Bahij Titr', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    direction: rtl;
    text-align: right;
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--primary-dark);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 1rem;
}

.logo i {
    font-size: 1.8rem;
}



.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}


.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid #dee2e6;
    cursor: pointer;
}

.checkbox-container label {
    color: var(--text-dark);
    cursor: pointer;
    margin: 0;
}

.btn-login {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    border-radius: 12px;
    color: white;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.links-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.register-link {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-light);
}

.register-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-right: 5px;
}

.register-link a:hover {
    text-decoration: underline;
}

@media (max-width: 576px) {
    .login-container {
        padding: 2rem 1.5rem;
    }

    .links-container {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/* Animation for form elements */
.form-group {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.form-group:nth-child(1) {
    animation-delay: 0.1s;
}

.form-group:nth-child(2) {
    animation-delay: 0.2s;
}

.checkbox-container {
    animation-delay: 0.3s;
}

.btn-login {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}