:root {
    --primary-color: #435ebe;
    --primary-color-dark: #374da3;
    --light-grey: #f8f9fa;
    --text-color: #212529;
    --text-muted: #6c757d;
    --font-family: 'Inter', sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: var(--light-grey);
    color: var(--text-color);
    line-height: 1.6;
}

.login-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* --- Columna de la Ilustración --- */
.illustration-side {
    flex: 0 0 70%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.login-background-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.illustration-side::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(8, 49, 71, 0.7); /* Color #083147 con 70% de opacidad */
    z-index: 2;
}

.illustration-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.illustration-content h1 {
    font-weight: 700;
    font-size: 3rem;
}

/* --- Columna del Formulario --- */
.form-side {
    flex: 0 0 30%; /* Ocupa el 30% del ancho */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    background-color: #ffffff;
}

.form-wrapper {
    width: 100%;
    max-width: 420px;
}

.form-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.form-header .logo-nexus {
    height: 100px;
    margin-bottom: 1rem;
}

.form-header h2 {
    font-weight: 600;
    font-size: 1.8rem;
}

.form-header p {
    color: var(--text-muted);
}

.form-label {
    font-weight: 500;
}

.input-group-text {
    background-color: var(--light-grey);
    border-right: none;
}

.form-control {
    border-left: none;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(67, 94, 190, 0.25);
}

.forgot-password-link {
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
}
.forgot-password-link:hover {
    text-decoration: underline;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.8rem;
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
}

.distrimayor-logo img {
    height: 60px;
    opacity: 0.8;
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
    .login-container {
        flex-direction: column;
    }

    .illustration-side, .form-side {
        flex-basis: auto; /* Resetea la base del flex para que ocupen el espacio necesario */
    }

    .illustration-side {
        height: 350px; /* Una altura fija para la parte de la imagen en móvil */
        min-height: auto;
    }

    .form-side {
        padding: 2rem 1.5rem; /* Ajusta el padding para móvil */
    }
    
    .illustration-content h1 {
        font-size: 2.2rem; /* Reduce el tamaño del título en móvil */
    }
}
