/* Estilos Generales */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Contenedor Principal del Login */
.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 900px;
    min-height: 500px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Sección de Información (Izquierda) */
.info-section {
    background: linear-gradient(rgba(50, 85, 128, 0.8), rgba(28, 48, 71, 0.9)), url('../IMG/fondo-sicoas.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
}

.info-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* Sección del Formulario (Derecha) */
.form-section {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#login-form h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo-container img {
    max-width: 150px;
    height: auto;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 600;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.input-group input:focus {
    outline: none;
    border-color: #325580;
}

button {
    width: 100%;
    padding: 12px;
    background-color: #325580;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #2c4a6e;
}

.error-message {
    color: #d93025;
    text-align: center;
    margin-top: 15px;
    height: 20px;
}

/* ---- RESPONSIVIDAD ---- */
@media (max-width: 768px) {
    .login-container {
        grid-template-columns: 1fr; /* Cambia a una sola columna */
        max-width: 400px;
        margin: 20px;
    }

    .info-section {
        display: none; /* Oculta la sección de la imagen en pantallas pequeñas */
    }
}