body {
    background: linear-gradient(-45deg, #004d99, #005fb8, #008cff, #ffffff);
    background-size: 400% 400%;
    animation: gradientMove 20s ease infinite;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    font-family: 'Inter', sans-serif !important;
}

/* Animación para el gradiente */
@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.login-container {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 50px 30px;
    border-radius: 15px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    height: auto;
    z-index: 10;
    position: relative;
    border: 2px solid black;
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    0% {
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.5),
                    0 0 15px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.8),
                    0 0 30px rgba(255, 255, 255, 0.6);
    }
    100% {
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.5),
                    0 0 15px rgba(255, 255, 255, 0.3);
    }
}

/* Aplicar width del 90% en dispositivos con ancho menor a 768px */
@media (max-width: 768px) {
    .login-container {
        width: 90%;
        margin-bottom: 50px;
    }
    
    .header-container h1 {
        font-size: 1.0rem !important;
    }
}

.logo-flotante {
    width: 80px; /* Tamaño del logo */
    margin-bottom: 15px; /* Espaciado con el título */
}

.login-container h2 {
    color: #004d99;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.login-container img {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 125px;
    top: 35px;
    z-index: 1;
    animation: float 3s ease-in-out infinite;
}

.form-control {
    border-radius: 25px;
    padding: 15px;
    font-size: 1rem;
    border: 1px solid #004d99;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #004d99;
    box-shadow: 0 0 8px rgba(0, 77, 153, 0.5);
}

.btn-primary {
    background-color: #004d99;
    border-color: #004d99;
    padding: 12px 20px;
    font-size: 1.1rem;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #003366;
    border-color: #003366;
    padding-right: 30px;
}

.btn-primary i {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: translateX(-10px);
}

.btn-primary span {
    transition: transform 0.3s ease;
}

.btn-primary:hover span {
    transform: translateX(10px);
}

.alert {
    margin-top: 15px;
}

.form-label {
    font-weight: 500;
}

/* Estilo del encabezado dentro del formulario */
.header-container {
    text-align: center;
    margin-bottom: 20px;
}

.header-container h1 {
    font-size: 1.0rem;
    font-weight: 600;
    color: #004d99;
    letter-spacing: 3px;
    margin-bottom: 10px;
    margin-top: 100px;
}

/* Animación flotante */
@keyframes float {
    0%, 100% {
        transform: translate(-50%, -10px);
    }
    50% {
        transform: translate(-50%, 10px);
    }
}

.input-group-text i {
    font-size: 1.5rem;
}

.mt-2 {
    margin-top: 1.5rem !important;
}

/* Estilo para el scroll */
::-webkit-scrollbar {
    width: 8px; /* Ancho del scrollbar */
}

::-webkit-scrollbar-track {
    background: #f1f1f1; /* Color de fondo de la pista */
}

::-webkit-scrollbar-thumb {
    background: #888; /* Color del "pulgar" del scrollbar */
    border-radius: 10px; /* Bordes redondeados */
}

::-webkit-scrollbar-thumb:hover {
    background: #555; /* Color cuando el pulgar es hover */
}

.sistema-subtitulo {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0;
}

/* Estilo mejorado para el botón de mostrar contraseña */
#togglePassword {
    border-radius: 0 25px 25px 0;
    border: 1px solid #004d99;
    border-left: none;
    background-color: #fff;
    transition: all 0.3s ease;
    color: #004d99;
    padding: 0 15px;
}

#togglePassword:hover {
    background-color: #f0f7ff;
    color: #003366;
}

#togglePassword i {
    transition: transform 0.3s ease;
}

.btn-primary:active {
    transform: scale(0.95);
}

.login-footer {
    position: absolute;
    bottom: 15px; /* separación desde el borde inferior */
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    width: 100%;
}

.sistema-titulo{
    font-family: 'Times New Roman', Times, serif;
    font-size: 50px;
}