/* assets/styles/login.css */

/* Contenedor principal de la sección */
.section_login {
    width: 100%;
    /* Calculamos la altura de la pantalla menos el header (80px) para centrar perfectamente */
    min-height: calc(100vh - 80px); 
    padding: 60px 20px;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.login_title {
    color: var(--black);
    font-size: 2.4rem;
    font-weight: 700;
    text-align: center;
}

.login_text {
    color: var(--grey);
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 20px;
}

/* Formulario estilo Tarjeta (Card) */
.login_form {
    width: 100%;
    max-width: 450px;
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--light-grey);
    
    display: flex;
    flex-direction: column;
    gap: 20px; /* Separación limpia entre campos */
}

.form_field {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login_label {
    color: var(--black);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Inputs accesibles y limpios */
.login_input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--light-grey);
    font-size: 1rem;
    color: var(--black);
    background: var(--background); /* Gris ultra claro */
    transition: all 0.3s ease;
}

.login_input:focus {
    background: var(--white);
    border-color: var(--mvl-blue); /* Celeste institucional MVL */
    box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.15); /* Efecto foco accesible */
    outline: none;
}

/* Botón de envío */
.login_submit {
    background: var(--mvl-blue);
    color: var(--white);
    font-weight: 700;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    padding: 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Manejo de mensajes (JS) */
.message_form {
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    min-height: 24px; /* Reserva el espacio para evitar saltos en la interfaz */
    transition: opacity 0.3s ease;
    opacity: 0;
}

.message_form.active {
    opacity: 1;
}

.message-success {
    color: var(--success-green);
}

.message-error {
    color: var(--error-red);
}

/* Textos y enlaces inferiores */
.form_text {
    color: var(--grey);
    text-align: center;
    margin-top: 10px;
}

.form_text > a {
    color: var(--mvl-blue);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

/* Efectos Hover (Solo en dispositivos que lo soporten) */
@media (hover: hover) {
    .login_submit:hover {
        background: var(--mvl-dark-blue);
        transform: translateY(-2px); /* Efecto de elevación */
        box-shadow: 0 4px 12px rgba(0, 159, 227, 0.3);
    }

    .form_text > a:hover {
        color: var(--mvl-dark-blue);
        text-decoration: underline;
    }
}

/* Responsive para celulares */
@media screen and (max-width: 500px) {
    .section_login {
        padding: 40px 15px;
    }
    
    .login_title {
        font-size: 2rem;
    }
    
    .login_form {
        padding: 30px 20px;
    }
}