/* digital/assets/css/login.css */

/* 1. Fundo Gradiente Animado */
body {
    background: linear-gradient(-45deg, #001a47, #0d47a1, #1565c0, #001a47);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* 2. Container de Login */
.login-container {
    background-color: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    color: #fff;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInCard 0.8s 0.2s ease-out forwards;
}

@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 3. Ícone Animado */
.login-logo-icon {
    font-size: 4rem;
    color: #0d6efd;
    filter: drop-shadow(0 0 10px rgba(13, 110, 253, 0.6));
    animation: pulseIcon 3s infinite ease-in-out;
}

@keyframes pulseIcon {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

/* 4. Botão Comprar Sistema */
.btn-buy-system {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.btn-buy-system:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: #fff;
}

/* 5. Links */
.small {
    color: #a0c4ff !important;
    text-decoration: none;
}

.small:hover {
    color: #fff !important;
    text-decoration: underline;
}

/* ============================================================
   6. CORREÇÃO CRÍTICA DOS INPUTS E LABELS (VERSÃO FINAL)
   ============================================================ */

/* Input Base */
.form-floating>.form-control {
    background-color: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    height: 3.5rem !important;
    line-height: 1.25;
    /* AQUI ESTÁ O SEGREDO: Mais espaço em cima para o texto não bater no label */
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}

/* CORREÇÃO DE SOBREPOSIÇÃO:
   O placeholder só aparece quando o usuário CLICA no campo.
   Isso impede que o texto "seu@email.com" fique em cima do "E-mail".
*/
.form-floating>.form-control:not(:focus)::placeholder {
    color: transparent !important;
    /* Esconde se não tiver foco */
}

.form-floating>.form-control:focus::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
    /* Mostra suavemente ao focar */
}

/* Label em Repouso (Texto Grande "E-mail") */
.form-floating>label {
    color: rgba(255, 255, 255, 0.7) !important;
    background-color: transparent !important;
    padding: 1rem 0.75rem;
    pointer-events: none;
    /* O clique passa através do texto */
    transform-origin: 0 0;
    transition: opacity .1s ease-in-out, transform .1s ease-in-out;
}

/* Label Ativo/Flutuando (Texto Pequeno no Topo) */
.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label,
.form-floating>.form-control:-webkit-autofill~label {
    color: #60a5fa !important;
    /* Azul claro */
    opacity: 1;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Correção do Autofill (Remove fundo branco do navegador) */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px rgba(0, 0, 0, 0.4) inset !important;
    -webkit-text-fill-color: #fff !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Borda azul neon ao clicar */
.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.4);
    border-color: #0d6efd !important;
}