/* Fondo con gradiente */

body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background: linear-gradient(270deg, #441d36, #1e2d4c, #441d36);
    background-size: 600% 600%;
    animation: moveGradient 20s ease infinite;
}

@keyframes moveGradient {
    0% {
        background-position: 100% 50%;
    }
    50% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}


/* Contenedor del login */

.login-container {
    background: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    text-align: center;
    width: 300px;
    position: relative;
    overflow: hidden;
    z-index: 10;
    /* Aumentado */
}

.login-container::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05), transparent 70%);
    animation: glow 10s linear infinite;
    z-index: -1;
    /* Poner el pseudo-elemento detrás del formulario */
}

.login-container:hover {
    box-shadow: rgba(255, 255, 255, 0.781);
}


/* Título */

h2 {
    color: white;
    margin: auto;
    font-size: 40px;
}


/* Inputs */

input {
    display: block;
    width: calc(100% - 20px);
    padding: 10px;
    margin: 10px auto;
    border: none;
    border-radius: 5px;
    background: #222;
    color: white;
    outline: none;
}


/* Placeholder en color gris */

input::placeholder {
    color: #bbb;
}


/* Botón */

button {
    width: 100%;
    padding: 10px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s ease-in-out;
}


/* Efecto hover del botón */

button:hover {
    background: #3b83f621;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.8), 0 0 15px rgba(162, 59, 246, 0.6);
    /* Efecto glow */
}


/* Mensaje de error */

.error-message {
    color: red;
    text-align: center;
    margin-top: 10px;
}

#loginForm {
    margin-top: 30px;
}

.error {
    border: 2px solid red;
}

.error-message {
    color: red;
    text-align: center;
    margin-top: 10px;
}

@keyframes glow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}