:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --btn-primary: #CB0101;
    --btn-hover: #b00000;
    --light-color: #f8f9fa;
    --dark-color: #2c3e50;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--light-color);
    color: var(--dark-color);
}

.login-container {
    display: flex;
    min-height: 100vh;
}

.hero-section {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    text-align: center;
}

.hero-section h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1571019613454-1cb2f99b2d8b?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80') center/cover;
    opacity: 0.15;
}

.login-section {
    width: 480px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    background-color: white;
    box-shadow: var(--box-shadow);
}

.logo {
    margin-bottom: 2.5rem;
    text-align: center;
}

.logo img {
    height: 50px;
}

.login-header {
    margin-bottom: 2.5rem;
}

.login-header h2 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.login-header p {
    color: #6c757d;
    font-size: 0.95rem;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.input-field {
    position: relative;
}

.input-field input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    transition: all 0.3s;
}

.input-field input:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 1.1rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.8rem;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 8px;
    accent-color: var(--btn-primary);
}

.forgot-password a {
    color: var(--btn-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.forgot-password a:hover {
    color: var(--btn-hover);
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background-color: var(--btn-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 15px rgba(203, 1, 1, 0.3);
}

.login-btn:hover {
    background-color: var(--btn-hover);
    transform: translateY(-2px);
}

.register-link {
    text-align: center;
    font-size: 0.95rem;
}

.register-link a {
    color: var(--btn-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.register-link a:hover {
    color: var(--btn-hover);
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-section {
        display: none;
    }
    
    .login-section {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        padding: 3rem;
    }
}

@media (max-width: 576px) {
    .login-section {
        padding: 2rem 1.5rem;
    }
    
    .login-header h2 {
        font-size: 1.8rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-section {
    animation: fadeIn 0.6s ease-out forwards;
}

.error-message {
    background-color: #ffdddd;
    color: #ff0000;
    padding: 10px 15px;
    border-radius: 5px;
    margin: 10px 0;
    text-align: center;
    font-size: 0.9em;
    border: 1px solid #ff0000;
}