/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&display=swap');
:root {
    --primary-color: #4361ee;
    --primary-dark: #3a56d4;
    --primary-light: #5a73f0;
    --secondary-color: #2d135e;
    --secondary-dark: #1a0c35;
    --secondary-light: #3d1a7a;
    --accent-color: #2d135e;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --gray-light: #e9ecef;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --google-red: #db4437;
    --google-red-dark: #c33c2e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary-color) 50%, var(--primary-dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 20px;
    color: var(--dark-color);
}

.login-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.login-card {
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    min-height: 650px;
}

.login-left {
    background: linear-gradient(to bottom right, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 50px 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none" opacity="0.1"><path d="M0,0 L100,0 L100,100 Z" fill="white"/></svg>');
    background-size: cover;
}

.brand-logo {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.brand-logo i {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 10px;
}

.brand-logo span {
    color: var(--primary-light);
}

.welcome-text {
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.welcome-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(to right, #fff, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

.feature-list {
    position: relative;
    z-index: 1;
}

.feature-list li {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.feature-list li i {
    font-size: 1.2rem;
    color: var(--primary-light);
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-right: 15px;
    flex-shrink: 0;
}

.feature-list li span {
    font-weight: 500;
}

.login-right {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.login-header p {
    color: var(--gray-color);
    font-size: 1rem;
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.input-group {
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--gray-light);
    transition: all 0.3s ease;
}

.input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25);
}

.input-group-text {
    background-color: white;
    border: none;
    color: var(--gray-color);
    padding: 0 15px;
}

.form-control {
    border: none;
    padding: 12px 15px;
    font-size: 1rem;
}

.form-control:focus {
    box-shadow: none;
}

.password-toggle {
    cursor: pointer;
    color: var(--gray-color);
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    color: var(--gray-color);
    font-size: 0.9rem;
}

#forgotPassword {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

#forgotPassword:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.btn-login {
    background-color: var(--primary-color);
    border: none;
    color: white;
    padding: 13px;
    font-weight: 600;
    border-radius: 10px;
    width: 100%;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-login:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.btn-login:disabled {
    background-color: var(--gray-color);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: var(--gray-light);
}

.divider span {
    padding: 0 15px;
    background-color: white;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    border: 2px solid var(--gray-light);
    background: white;
    color: var(--dark-color);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-btn.google {
    color: var(--google-red);
    border-color: var(--gray-light);
}

.social-btn.google:hover {
    background-color: var(--google-red);
    color: white;
    border-color: var(--google-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(219, 68, 55, 0.3);
}

.login-links {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-light);
}

.login-links p {
    color: var(--gray-color);
    font-size: 0.95rem;
}

.login-links a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-links a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.alert {
    border-radius: 10px;
    border: none;
    padding: 15px;
    font-size: 0.95rem;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
    border-left: 4px solid var(--warning-color);
}

.alert-dismissible .btn-close {
    padding: 0.75rem;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .login-left {
        padding: 40px 30px;
    }
    
    .login-right {
        padding: 40px 30px;
    }
    
    .welcome-text h2 {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    body {
        padding: 10px;
    }
    
    .login-card {
        border-radius: 15px;
    }
    
    .login-left,
    .login-right {
        padding: 30px 20px;
    }
    
    .brand-logo {
        margin-bottom: 40px;
        font-size: 24px;
    }
    
    .welcome-text h2 {
        font-size: 1.8rem;
    }
    
    .feature-list li {
        margin-bottom: 20px;
        font-size: 0.95rem;
    }
    
    .feature-list li i {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .login-header h3 {
        font-size: 1.5rem;
    }
    
    .form-control {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    
    .btn-login {
        padding: 12px;
    }
    
    .social-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 575.98px) {
    .social-login {
        gap: 10px;
    }
    
    .social-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .divider span {
        font-size: 0.8rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card {
    animation: fadeIn 0.5s ease-out;
}

/* Custom focus styles */
.form-control:focus,
.social-btn:focus {
    outline: none;
}

/* Loading spinner */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
