/* General */
html, body {
    font-family: 'Montserrat', Arial;
    margin: 0;
    height: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Fondo (Capa 1) */
.background {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: fixed;
    width: 100%;
    filter: brightness(1.7);
    z-index: -1;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2); /* Blanco con 20% de opacidad */
    z-index: -1;
}

.background img {
    width: 100%;
    margin-bottom: 20px;
}

/* Contenedor Principal */
.login-container {
    display: flex;
    width: 329px;
    max-width: 100%;
    height: 424px;
    box-shadow: 0 4px 8px rgba(124, 141, 158, 0.897);
    border-radius: 10px;
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.9);

    & .user-icon img {
        width: 50px;
        margin-bottom: 20px;
    }
}

/* Cuadro Blanco (Formulario de Login) */
.login-box {
    width: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-sizing: border-box;

    & h2 {
        margin-bottom: 20px;
        font-size: 1.4rem;
        color: #7A2B2B;
        text-align: center;
    }
}

.form-group {
    width: 100%;
    margin-bottom: 10px;

    & label {
        display: block;
        margin-bottom: 5px;
        font-size: 1rem;
    }

    & input {
        width: 90%;
        padding: 10px;
        font-size: 1rem;
        border: 1px solid #ccc;
        border-radius: 5px;
    }
}

.login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-form .forgot-password {
    align-self: flex-start;
    font-size: 0.8rem;
    color: #000000;
    text-decoration: none;
}

.login-form .forgot-password:hover {
    text-decoration: underline;
}

.login-form button {
    width: 60%;
    padding: 12px;
    font-size: 0.8rem;
    color: white;
    background-color: #A04131;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 15px;
    text-align: center;
}

.login-form button:hover {
    background-color: #5A1A1A;
}

.a-button {
    font-size: 0.8rem;
    width: 37%;
    padding: 12px;
    margin-top: 10px;
    color: white;
    background-color: #524542;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    text-align: center;
}

.a-button:hover {
    background-color: #5A1A1A;
}

.messages {
    list-style: none;
    padding: 0;
    margin: 0;

    & li {
        align-items: center;
        text-align: center;
        padding: 10px;
        margin: 5px 0;
        border-radius: 5px;
        background-color: #F5F5F5;
        box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
        transform: translateX(0px);
        transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;

        &.error {
            background-color: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }

        &.success {
            background-color: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb; 
        }
    }
}

/* Estilo para errores de formulario */
.errorlist {
    list-style: none;
    padding: 10px;
    margin: 0 0 15px 0;
    width: 90%;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.errorlist li {
    margin: 5px 0;
}


/* Cuadro Rojo (Información de Munani) */
.munani-info {
    width: 30%;
    background-color: #7A2B2B;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    box-sizing: border-box;
}

.munani-logo img {
    max-width: 200px;
    margin-bottom: 10px;
}

.welcome-message {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.description {
    text-align: center;
    font-size: 0.9rem;
    font-style: italic;
    line-height: 1.5;
}

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #fff; 
    padding: 1px 5px; 
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1); 
}

.footer p {
    margin: 0;
    text-align: right;
    font-size: 13px;
    color: #000;
}

.footer img {
    vertical-align: middle;
    max-height: 20px;
    margin-left: 0.1px;
}
