:root {
    --primary-color: #6c5ce7; /* Morado basado en el logo */
    --accent-color: #ffb800;  /* Amarillo basado en el logo */
    --warm-bg: #fff9f5;      /* Fondo cálido minimalista */
    --text-dark: #2d3436;
    --text-light: #636e72;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
}

.login-container {
    display: flex;
    min-height: 100vh;
}

/* --- SECCIÓN IZQUIERDA (HERO) --- */
.hero-section {
    flex: 1.2;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&q=80&w=2000'); /* Imagen de logística profesional */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: var(--white);
}

.hero-content {
    max-width: 500px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* --- SECCIÓN DERECHA (FORMULARIO) --- */
.form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--warm-bg);
    padding: 40px;
}

.form-box {
    width: 100%;
    max-width: 400px;
}

.logo {
    max-width: 150px;
    margin-bottom: 30px;
}

.form-header h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.form-header p {
    color: var(--text-light);
    margin-bottom: 40px;
}

/* Inputs */
.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.input-group input {
    width: 100%;
    padding: 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    background: var(--white);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Opciones y Lenguaje */
.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 0.85rem;
}

.lang-selector label {
    margin-right: 10px;
    cursor: pointer;
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* Botón */
.btn-submit {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), #8e44ad);
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

.alert {
    padding: 16px;
    border-radius: 10px;
    background-color: #f8d7da;
    color: #721c24;
    margin-bottom: 20px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.form-footer {
    margin-top: 50px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-light);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .hero-section {
        display: none; /* Ocultamos la imagen en tablets y móviles para priorizar el login */
    }
    
    .form-section {
        background-color: var(--white);
    }
}