/* Global Styles */
:root {
    /* Blue Theme for Login */
    --primary-color: #4361ee;
    --primary-hover: #3a56d4;
    --secondary-color: #3f37c9;
    --light-color: #f0f4ff;
    --dark-color: #1a237e;
    --text-color: #2c3e50;
    --text-muted: #6c757d;
    --border-radius: 8px;
    --box-shadow: 0 4px 20px rgba(67, 97, 238, 0.15);
    --form-bg: #ffffff;
    --input-focus: rgba(67, 97, 238, 0.2);
}

body {
    font-family: 'Tajawal', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}




/* Footer */
footer {
    background-color: #1a1a2e;
}

footer h5 {
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

footer h5::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    bottom: -8px;
    right: 0;
}

footer ul li {
    margin-bottom: 0.75rem;
}

footer a {
    color: #adb5bd;
    transition: color 0.3s ease;
    text-decoration: none;
}

footer a:hover {
    color: #fff;
    text-decoration: none;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Login Section */
.login-section {
    min-height: calc(100vh - 76px); /* Subtract header height */
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
}

.login-form-container {
    max-width: 450px;
    width: 90%;
    margin: 2rem auto;
    padding: 2.5rem;
    background: var(--form-bg);
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(67, 97, 238, 0.1);
}

.login-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    text-align: center;
}

.login-header p {
    color: #718096;
    margin-bottom: 0;
}

.login-form .form-control {
    height: 40px;
    border-right: 0;
    border-left: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.login-form .form-control:focus {
    box-shadow: none;
    border-color: #4361ee;
}
 
.login-form .input-group-text {
    background-color: #fff;
    border-right: 0;
    border-left: 1px solid #e2e8f0;
    color: #a0aec0;
    padding: 0 1rem;
}

.login-form .toggle-password {
    border-right: 0;
    border-left: 1px solid #e2e8f0;
    background-color: #fff;
    color: #a0aec0;
}

.login-form .toggle-password:hover {
    background-color: #f8f9fa;
    color: #4a5568;
}

.login-form .divider {
    position: relative;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.login-form .divider span {
    position: relative;
    top: 10px;
    padding: 0 10px;
    color: #718096;
    font-size: 0.875rem;
}

.social-login .btn {
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-login .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.2);
}

/* Login Image Section */
.login-image {
    position: relative;
    height: 100%;
    min-height: 100vh;
    overflow: hidden;
}

.login-image img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.image-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    color: white;
}

.image-overlay h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.image-overlay p {
    font-size: 1.1rem;
    max-width: 80%;
    margin: 0 auto;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .login-section {
        padding: 2rem 0;
    }
    
    .login-form-container {
        max-width: 100%;
        padding: 2rem 1.5rem;
    }
    
    .login-image {
        min-height: 400px;
    }
}

/* Buttons */
.btn {
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    padding: 0.65rem 1.5rem;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 4rem 0;
        text-align: center;
    }
    
    .hero-section img {
        margin-top: 2rem;
    }
    
    .section-header h2::after {
        right: 50%;
        transform: translateX(50%);
    }
}

@media (max-width: 767.98px) {
    .navbar-collapse {
        padding: 1rem;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
        margin-top: 1rem;
    }
    
    .hero-section h1 {
        font-size: 2.25rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1.25rem;
        font-size: 1rem;
    }
}
