/* --- Estilos para la Opción 1: Panel Dividido --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    height: 100vh;
    overflow: hidden; /* Evita barras de scroll */
}

.login-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
}

/* --- Panel de la Imagen (Izquierda) --- */
.login-image-panel {
    flex: 1;
    background: linear-gradient(rgba(0, 50, 150, 0.6), rgba(0, 20, 80, 0.8)), url('https://images.unsplash.com/photo-1565513797994-3434b59a8441?q=80&w=1974&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    padding: 2rem;
}

.image-content h1 {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.image-content p {
    font-size: 1.2rem;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- Panel del Formulario (Derecha) --- */
.login-form-panel {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f9fa;
    padding: 2rem;
}

form {
    width: 100%;
    max-width: 400px;
}

form h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 2rem;
    text-align: left;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 500;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

.input-with-icon input {
    width: 100%;
    padding: 0.8rem 0.8rem 0.8rem 2.5rem; /* Espacio para el icono */
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1rem;
}

.input-with-icon input:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
}

button {
    width: 100%;
    padding: 0.9rem;
    background-color: #0d6efd;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0b5ed7;
}

/* Mensaje de error */
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 0.75rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    display: none;
}

/* Responsividad para móviles */
@media (max-width: 768px) {
    .login-image-panel {
        display: none; /* Oculta el panel de la imagen en pantallas pequeñas */
    }
    .login-form-panel {
        flex: 2; /* Ocupa todo el espacio */
    }
}