/* Reset básico de estilos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f6f9;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Contenedor Principal */
.login-container {
    display: flex;
    width: 100%;
    max-width: 1000px;
    height: 600px;
    background-color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

/* Panel Izquierdo (Azul Oscuro) */
.brand-panel {
    flex: 1;
    background-color: #0b2240; /* Tono azul oscuro de la imagen */
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
}

.brand-content {
    margin-auto: max;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 80%;
}

.brand-title {
    font-size: 1.8rem; /* Esto equivale a aprox. 28px en lugar de 40px */
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
}


.brand-slogan {
    font-style: italic;
    font-size: 1.1rem;
    color: #a0b2c6;
}

.brand-footer {
    font-size: 0.7rem;
    color: #7188a5;
}

/* Panel Derecho (Formulario) */
.form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.form-content {
    width: 100%;
    max-width: 360px;
}

.form-content h2 {
    color: #1a1a1a;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.subtitle {
    color: #757575;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

/* Campos de entrada */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 0.9rem;
}

.input-group input, 
.input-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #b0bec5;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #fff;
    outline: none;
    transition: border-color 0.2s;
}

.input-group input:focus,
.input-group select:focus {
    border-color: #1e6bf1;
}

/* Botones */
.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-submit {
    background-color: #1e6bf1; /* Azul vibrante del botón Aceptar */
    color: white;
}

.btn-submit:hover {
    background-color: #1552bc;
}

.btn-cancel {
    background-color: #e0e4eb; /* Gris del botón Cancelar */
    color: #4a5568;
}

.btn-cancel:hover {
    background-color: #cbd5e1;
}


/* RESPONSIVIDAD (Media Queries) */

/* Tablets (Pantallas menores a 768px) */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        height: auto;
        max-width: 500px;
        margin: 20px;
    }

    .brand-panel {
        padding: 30px;
        text-align: center;
        gap: 20px;
    }

    .brand-content {
        height: auto;
    }

    .brand-title {
        font-size: 2rem;
    }
    
    .form-panel {
        padding: 40px 30px;
    }
}

/* Celulares (Pantallas menores a 480px) */
@media (max-width: 480px) {
    .login-container {
        margin: 10px;
        box-shadow: none;
        background-color: transparent;
    }
    
    .brand-panel {
        border-radius: 8px 8px 0 0;
    }

    .form-panel {
        background-color: #fff;
        border-radius: 0 0 8px 8px;
        padding: 30px 20px;
    }

    .button-group {
        flex-direction: column; /* Los botones se apilan en celulares para tocar más fácil */
        gap: 10px;
    }
}
