/* Global styles */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-image: url("/static/core/imagenlogin.071eb6e356a6.png"); /* Ruta de la imagen de fondo */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Login Container */
.login-container {
    background: rgba(255, 255, 255, 0.9); /* Fondo blanco translúcido */
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2); /* Sombra elegante */
    max-width: 400px;
    width: 100%;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

.login-container h1 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: #007BFF;
}

/* Form Styling */
.login-container form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Espaciado entre elementos */
}

.login-container input[type="text"],
.login-container input[type="password"] {
    padding: 12px;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    outline: none;
    transition: all 0.3s ease;
}

.login-container input[type="text"]:focus,
.login-container input[type="password"]:focus {
    border-color: #007BFF;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
}

/* Submit Button */
.login-container button {
    background-color: #007BFF;
    color: #fff;
    border: none;
    padding: 12px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-container button:hover {
    background-color: #0056b3;
    transform: scale(1.05); /* Botón ligeramente más grande */
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2);
}

/* Error Message */
.login-container .error {
    color: red;
    font-size: 0.9rem;
    margin-top: -1rem;
}

/* Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        width: 90%;
        padding: 1.5rem;
    }

    .login-container button {
        width: 100%;
    }
}
