/* Estilos generales */
body {
    font-family: "Titillium Web";
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #3e4f6e;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url('../../images/fondo.png');
}

/* Contenedor principal para centrar el formulario */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* Caja del formulario de login */
.login-box {
    background-color: #d5dde6;
    padding: 70px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    width: 35%;
    text-align: center;
}

/* Sección del logo */
.logo-section {
    margin-bottom: 30px;
}

.logo-section .logo {
    width: 50%;
    height: auto;
    display: block;
    margin: 0 auto 5px auto;
}

.logo-section .logo-text {
    font-size: 12px;
    color: #555;
    margin: 0;
    letter-spacing: 2px;
}

/* Sección del formulario */
.form-section h3 {
    color: #3e4f6e;
    margin-bottom: 30px;
    font-size: 30px;
    font-weight: 400;
}

/* Grupo de entrada (label + input + error) */
.input-group {
    margin-bottom: 30px;
    text-align: left;
}

::placeholder {
    font-family: "Titillium Web"!important;
    font-size: 20px!important;
    color: #3e4f6e!important;
}

.input-group input[type="text"],
.input-group input[type="password"] {
    width: 100%;
    padding: 0 12px;
    border: none;
    border-bottom: 2px solid #3e4f6e;
    background-color: transparent;
    box-sizing: border-box;
    font-size: 16px;
    color: #3e4f6e;
    transition: border-bottom-color 0.3s;
    line-height: 40px;
}

.input-group input[type="text"]:focus,
.input-group input[type="password"]:focus {
    border-bottom-color: #3e4f6e;
    /* Color de enfoque */
    outline: none;
}

/* Mensaje de error global */
.global-error-message {
    background-color: #fbeae5;
    color: #a94442;
    border: 1px solid #ebccd1;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    margin-top: 20px;
    display: block; /* Cambiado de display: none */
}

/* Asegurar que cuando esté visible se muestre */
.global-error-message[style*="visible: true"] {
    display: block !important;
}

/* Estilo para el input con error (opcional, si se decide resaltar el campo) */
.input-error {
    border-bottom-color: #a94442 !important;
    /* Rojo oscuro para indicar error */
}

.form-button{
    width: 100%;
    padding: 3px;
    background-color: rgba(62, 79, 110, 0.32);
    color: #3e4f6e;
    border: none;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}


/* Botón de Ingresar */
#loginButton {
    width: 100%;
    padding: 3px;
    background-color: rgba(62, 79, 110, 0.32);
    color: #3e4f6e;
    border: none;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}

@media (max-width: 767px) {
    .login-box {
        margin: 20px;
        padding: 30px;
    }

    .form-section h3 {
        margin-bottom: 25px;
    }

    .login-box {
        width: 100%;
    }
}