@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


body {
    font-family: 'Manrope', sans-serif !important;
}

/* Contêiner principal */
.background {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Estilos do vídeo para cobrir todo o fundo */
.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1; /* Mantém o vídeo atrás de qualquer conteúdo */
}

.center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    gap: 10px;
    background-color: #FFFFFF; /* Mantido como estava */
    -webkit-backdrop-filter: blur(3px); /* Suporte para Safari */
    backdrop-filter: blur(3px);
    border-radius: 5px;
    border: 1px solid #ECEBEE;
}


.center h1 {
    text-align: center;
    padding: 20px 0;
    color: #75269C; /* Cor Branco */
}

.center form {
    padding: 0 40px;
    box-sizing: border-box;
}

form .txt_field {
    position: relative;
    border: 1px solid #DFDEE1;
    border-radius: 5px;
    margin: 30px 0;
    height: 49px;
}

.txt_field input {
    width: 100%;
    color: #373F47;
    padding: 0px 10px;
    height: 49px;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    border: none;
    background: none;
    outline: none;
    position: relative;
    z-index: 1;
}


.txt_field label {
    position: absolute;
    top: 50%;
    left: 10px;
    color: #373F47;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    pointer-events: none;
    transition: 0.5s;
    z-index: 0;
}

.txt_field span::before {
    content: "";
    position: absolute;
    top: 50px;
    left: 0;
    width: 0%;
    height: 2px;
    background: #373F47;
    transition: 0.5s;
    z-index: 0;
}

.txt_field input:focus~label,
.txt_field input:valid~label {
    display: none; /* Cor Secundária */
}

.txt_field input:-webkit-autofill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent !important; /* Remove o fundo azul claro */
    z-index: -1;
}


/* Para navegadores baseados em WebKit (Chrome, Safari) */
.txt_field input:-webkit-autofill {
    background-color: transparent !important; /* Remove o fundo azul claro */
    -webkit-text-fill-color: #373F47 !important; /* Define a cor do texto */
    border: none !important; /* Reaplica a borda */
    transition: background-color 9999s ease-in-out 0s; /* Força o navegador a aplicar o fundo */
    width: 100%;
    color: #373F47;
    padding: 0px 10px;
    height: 49px;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    background: none;
    outline: none;
    position: relative;
    z-index: 1;
}

/* Para Firefox */
.txt_field input:-moz-autofill {
    background-color: transparent !important; /* Remove o fundo azul claro */
    color: #373F47 !important; /* Define a cor do texto */
    border: none !important; /* Reaplica a borda */
    width: 100%;
    color: #373F47;
    padding: 0px 10px;
    height: 49px;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    background: none;
    outline: none;
    position: relative;
    z-index: 1;
}

/* Para Edge */
.txt_field input:-ms-autofill {
    background-color: transparent !important; /* Remove o fundo azul claro */
    color: #373F47 !important; /* Define a cor do texto */
    border: none !important; /* Reaplica a borda */
    width: 100%;
    color: #373F47;
    padding: 0px 10px;
    height: 49px;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    background: none;
    outline: none;
    position: relative;
    z-index: 1;
}



.sign,
.mail,
.eye1,
.eye2 {
    position: absolute;
    background-color: rgba(0, 0, 0, 0);
    top: 50%;
    border: none;
    right: 15px;
    transform: translateY(-50%);
    font-size: 18px;
    color: #F8F7FA; /* Cor Branco */
}

.sign:hover,
.mail:hover,
.eye1:hover,
.eye2:hover {
    color: #00D9A9; /* Cor Secundária */
}

.pass {
    color: #5B6167; /* Cor Branco */
    cursor: pointer;
    font-weight: 500;
    size: 16px;
    line-height: 20px;
    text-decoration: none;
}

.pass:hover {
    color: #5B6167; /* Cor Secundária */
}

.forget {
    width: 100%;
    height: 40px;

}

input[type="submit"] {
    width: 100%;
    height: 50px;
    border: 0;
    background: #75269C; /* Cor Secundária */
    border-radius: 5px;
    font-size: 18px;
    color: #F8F7FA; /* Cor Branco */
    font-weight: 800;
    cursor: pointer;
    line-height: 20px;
    outline: none;
}

input[type="submit"]:hover {
    border-color: #75269C; /* Cor Secundária */
    transition: 0.5s;
}

.signup_link {
    margin: 30px 0;
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    line-height: 20px;
    letter-spacing: -0.3px;
    color: #75269C; /* Cor Branco */
}

.signup_link a {
    color: #75269C; /* Cor Branco */
    text-decoration: none;
}

.signup_link a:hover {
    color: #75269C; /* Cor Secundária */
}

button#reset {
    background-color: #75269C; /* Cor Secundária */
    border-color: #75269C; /* Cor Secundária */
}

.logo-light {
    display: inline-block;
}

.logo-dark {
    display: none;
}

/* Tema Escuro */
@media (prefers-color-scheme: dark) {
    .logo-light {
        display: none;
    }
    .logo-dark {
        display: inline-block;
    }


    .center {
        background-color: #373F47;
        border: 1px solid #5B6167;
    }

    .center h1 {
        color: #FFFFFF;
    }

    .txt_field {
        background-color: #FFFFFF;
    }

    .txt_field input {
        color: #373F47;
    }

    .txt_field label,
    .txt_field span::before {
        color: #373F47;
    }

    .sign,
    .mail,
    .eye1,
    .eye2 {
        color: #FFFFFF;
    }

    .pass {
        color: #DFDEE1;
    }

    input[type="submit"] {
        background: #D7A9F2;
        color: #141D26;
    }

    .signup_link {
        color: #D7A9F2;
    }

    .signup_link a {
        color: #D7A9F2;
    }


    input[type="submit"] {
        background: #D7A9F2; /* Cor Secundária */
        color: #141D26; /* Cor Branco */
    }

    input[type="submit"]:hover {
        border-color: #D7A9F2; /* Cor Secundária */
    }

    .signup_link {
        color: #D7A9F2; /* Cor Branco */
    }

    .signup_link a {
        color: #D7A9F2; /* Cor Branco */
        text-decoration: none;
    }

    .signup_link a:hover {
        color: #D7A9F2; /* Cor Secundária */
    }

    button#reset {
        background-color: #D7A9F2; /* Cor Secundária */
        border-color: #D7A9F2; /* Cor Secundária */
    }

    .btn-primary {
        color: #141D26 !important;
    }
}
