body {
    font-family: 'Poppins', sans-serif;
    background-image: url('../assets/bgtopmodels.png');
    background-color: #f0f0f0;
    background-size: 100% auto; /* Ajustamos el tamaño para mejorar la calidad del fondo en dispositivos móviles */
    background-repeat: no-repeat;
    background-position: center center;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.05); /* Reducimos la opacidad para mejorar la visibilidad del fondo */
    z-index: -1;
}

.login-container {
    width: 90%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.2); /* Aumentamos la transparencia para dejar ver más el fondo */
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25); /* Hacemos la sombra un poco más pronunciada para mejorar el contraste */
    backdrop-filter: blur(15px); /* Incrementamos el desenfoque para dar más énfasis al fondo */
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 0, 0, 0.2);
    text-align: center;
}

h2 {
    color: black;
    margin-bottom: 25px;
    font-weight: 700;
    font-size: 26px;
}

input[type="text"], input[type="password"] {
    font-size: 16px; /* Consistente */
    width: calc(100% - 20px);
    padding: 15px;
    margin: 15px 0;
    display: block;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.3); /* Aumentamos la opacidad para una mejor visibilidad */
    color: #323232;
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.2), inset -2px -2px 5px rgba(255, 255, 255, 0.1);
    outline: none;
    border: 1px solid #323232;
}

input::placeholder {
    color: #b5b5b5;
    font-size: 16px; /* Consistente */
}

button {
    font-size: 16px; /* Consistente */
    display: inline-block;
    margin: 15px auto;
    width: 100%;
    padding: 15px;
    background: #c88f24;
    color: #ffffff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

button:hover {
    background: white;
    color: #323232;
    border: 1px solid #323232;
}

#loginMessage {
    display: none;
}

/* Popup de error */
#errorPopup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff4d4d;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px; /* Consistente */
    z-index: 1000;
    animation: fadeInPopup 0.5s ease, fadeOutPopup 0.5s ease 9.5s;
}

#errorPopup .icon {
    font-size: 20px;
    color: #ff4d4d;
}

.logo-models {
    margin-bottom: 0.2rem;
    margin-top: 2rem;
    width: 33vh;
    height: auto;
}

@keyframes fadeInPopup {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutPopup {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}
