:root {
    --primary: #2C5F8C;
    --primary-dark: #1D4669;
    --secondary: #F0B323;
    --accent: #E74C3C;
    --light: #F8FAFC;
    --dark: #1E293B;
    --gray: #64748B;
    --success: #10B981;
    
    --transition: all 0.3s ease;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 6px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    text-decoration: none;
}

body {
    font-family: 'Roboto', 'Poppins', sans-serif;
    line-height: 1.6;
    background: var(--light);
    color: var(--dark);
    overflow-x: hidden;
}

.login-container {
    display: flex;
    flex: 1;
    min-height: 100vh;
}

.login-left {
    flex: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.login-left::after {
    content: "";
    position: absolute;
    bottom: -80px;
    left: -30px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-content {
    max-width: 500px;
    width: 100%;
    z-index: 2;
    position: relative;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.login-brand i {
    font-size: 2.5rem;
    color: var(--secondary);
}

.login-brand h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.login-features {
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-text h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.feature-text p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.login-form-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    width: 100%;
    max-width: 500px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 10px;
}

.login-header p {
    color: var(--gray);
}

.form-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.form-control {
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(44, 95, 140, 0.1);
}

.input-group {
    position: relative;
}

.input-group .form-control {
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.form-check {
    display: flex;
    align-items: center;
}

.form-check-input {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--dark);
}

.forgot-password {
    font-size: 0.9rem;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.forgot-password:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.login-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px;
    font-weight: 600;
    border-radius: 8px;
    width: 100%;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    margin-top: 10px;
}

.login-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.divider span {
    padding: 0 15px;
    color: var(--gray);
    font-size: 0.9rem;
}

.social-login {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid #e2e8f0;
    background: white;
    color: var(--dark);
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.social-btn.google {
    color: #DB4437;
}

.social-btn.facebook {
    color: #4267B2;
}

.signup-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.95rem;
    color: var(--gray);
}

.signup-link a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.signup-link a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

@media (max-width: 992px) {
    .login-left {
        display: none;
    }
    
    .login-right {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .login-form-container {
        padding: 30px 20px;
    }
    
    .options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .social-login {
        flex-direction: column;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate {
    animation: fadeIn 0.8s ease forwards;
}