/* Estilos generales */
body {
    background: url('../imagenes/fondo_login.jpg') no-repeat center center fixed;
    font-family: 'Poppins', Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    color: white;
}

/* Contenedor principal */
.container {
    background: rgba(0, 0, 0, 0.6); /* Hacer el fondo del formulario un poco más transparente */
    padding: 25px;
    border-radius: 10px;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    width: 350px;
    text-align: center;
    margin-top: -50px; /* Subir el formulario para no tapar el texto */
    animation: fadeIn 0.5s ease-in-out;
}

/* Título */
h2 {
    font-size: 24px;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
}

/* Estilos del formulario */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

/* Campos de entrada */
.form-control {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 16px;
    transition: all 0.3s ease-in-out;
    outline: none;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Botón de inicio de sesión */
.btn {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: white;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

.btn:hover {
    background: #0056b3;
}

/* Pie de página */
.footer {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px;
}

/* Mensaje de error */
.has-error .form-control {
    border-color: red;
}

.has-error p {
    color: red;
    font-size: 14px;
    margin-top: 5px;
}

/* Animación de entrada */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


