
:root {
    --lime-main: #365314;
    --lime-dark: #84cc16;
    --lime-light: #f7fee7;
}

body,
html {
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #ffffffd4;
    scrollbar-color: #1a538f transparent;
    scrollbar-width: thin;
    scroll-behavior: smooth;
}

/* Background Animado */
.bg-cadastro-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-cadastro-image {
    background-image: url('/img/bkgCadastro1.png');
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    filter: brightness(0.8);
    animation: kenBurns 25s ease-in-out infinite alternate;
}

@keyframes kenBurns {
     0% {
         transform: scale(1);
     }

     100% {
         transform: scale(1.1);
     }
 }

/* Container do Formulário */
.main-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.form-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    width: 100%;
    max-width: 800px;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.6s ease-out;
}
.transition-colors {
    transition: color 0.3s ease;
}
.transition-colors i {
    transition: transform 0.2s ease, color 0.3s ease;
}
/* Um pequeno "pulo" no ícone quando ele for validado (Opcional) */
.text-success i {
    transform: scale(1.1);
}
@keyframes slideUp {
     from {
         opacity: 0;
         transform: translateY(30px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

.logo-img {
    max-width: 150px;
    margin: 0 auto 1.5rem;
    display: block;
}

/* Estilo dos Inputs */
.form-control {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 0.75rem;
}

.form-control:focus {
    border-color: var(--lime-dark);
    box-shadow: 0 0 0 0.25rem rgba(132, 204, 22, 0.25);
}

/* Barra de Força da Senha */
#forca-container {
    height: 6px;
    background-color: #e2e8f0;
    border-radius: 10px;
    margin-top: 8px;
    overflow: hidden;
}

.forca-barra {
    height: 100%;
    width: 0%;
    transition: all 0.4s ease;
}

.logo-wrapper {
    padding: 20px 0;
}

.logo-img {
    /* Ajuste a largura máxima conforme o design da sua logo */
    max-width: 220px;
    height: auto;
    /* O filtro que você já estava usando, agora aplicado à imagem */
    filter: drop-shadow(0px 8px 15px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

/* Um toque extra: leve efeito ao passar o mouse */
.logo-img:hover {
    transition: 0.5s;
    transform: translateY(-2px);
}

.logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
    perspective: 1000px; /* Dá profundidade */
}

.logo-animada {
    width: 180px; /* Ajuste o tamanho aqui */
    height: auto;
    filter: drop-shadow(0px 10px 15px rgba(0, 0, 0, 0.1));

    /* Aplica a animação de flutuar */
    animation: flutuar 4s ease-in-out infinite;
    transition: transform 0.3s ease;
}

/* Efeito ao passar o mouse */
.logo-animada:hover {
    transform: scale(1.05);
    filter: drop-shadow(0px 15px 25px rgba(0, 0, 0, 0.15));
}

/* Keyframes para o movimento de subida e descida */
@keyframes flutuar {
     0%, 100% {
         transform: translateY(0px);
     }
     50% {
         transform: translateY(-12px); /* Sobe 12 pixels */
     }
 }

.shiny-container {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.shiny-container::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -150%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
            to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: brilho 6s infinite;
}

@keyframes brilho {
     0% {
         left: -150%;
     }
     20% {
         left: 150%;
     }
     /* O brilho passa rápido */
     100% {
         left: 150%;
     }
     /* Fica parado o resto do tempo */
 }

/* Botões */
.btn-lime {
    background-color: var(--lime-main);
    color: #ffffff;
    font-weight: 700;
    border: none;
    padding: 0.8rem;
    transition: all 0.3s;
}

.btn-lime:hover {
    background-color: var(--lime-dark);
    color: white;
    transform: translateY(-2px);
}

.btn-back {
    position: absolute;
    top: 20px;
    left: 20px;
    background: white;
    color: #333;
    padding: 8px 15px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

@media (max-width: 1110px) {
    .btn-back {
        z-index: 100;
    }
}

.btn-back:hover {
    color: var(--lime-dark);
    transform: translateX(-5px);
}

.btn-google {
    border: 1px solid #ddd;
    background: white;
    transition: 0.3s;
}

.btn-google:hover {
    background: #f9fafb;
}

.btn-google img {
    height: 20px;
}

.termos:hover {
    cursor: pointer;
    transition: 0.5s;
}

.termos {
    transition: 0.5s;
}

.transition-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    /* Cor da transição */
    z-index: 9999;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    opacity: 1;
}

/* Estado quando a página carregou (sai da tela) */
.transition-layer.is-hidden {
    opacity: 0;
    transition: 0.5s;
}

/* Estado de saída (entra na tela vindo de baixo) */
.transition-layer.is-leaving {
    opacity: 1;
    transition: 0.5s;
}


/* Transição suave para a checklist (do código anterior) */
.transition-colors {
    transition: color 0.3s ease;
}
.transition-colors i {
    transition: transform 0.2s ease, color 0.3s ease;
}

/* Animação do botão do Olho */
.eye-icon {
    display: inline-block; /* Necessário para o transform funcionar em ícones */
    transition: transform 0.15s ease-in-out;
}

.eye-icon.blink {
    transform: scale(0); /* Faz o ícone "fechar" */
}

/* CSS para o contêiner do ícone SVG */
.eye-anim-icon {
    width: 1.25em;
    height: 1.25em;
    vertical-align: middle;
    fill: currentColor; /* Usa a cor do texto do Bootstrap */
}
@keyframes fastBlink {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0); }
}
.blink-fast {
    animation: fastBlink 0.15s ease-in-out;
}

/* Animação 1: O Piscar (Blink) do Olho */
@keyframes eyeBlink {
    0%, 90%, 100% {
        transform: scaleY(1);
        transform-origin: center;
    }
    95% {
        transform: scaleY(0.1);
        transform-origin: center;
    }
}

/* Classe aplicada para fazer o olho piscar */
.eye-pupil-blink {
    animation: eyeBlink 5s infinite; /* Pisca a cada 5 segundos */
}

/* Animação 2: O Movimento da Pupila (Gaze) */
@keyframes eyeGazeToField {
    0% { transform: translate(0, 0); } /* Olhando pra frente */
    100% { transform: translate(-3px, 1px); } /* Olhando pro campo (esquerda/baixo) */
}

@keyframes eyeGazeBackForward {
    0% { transform: translate(-3px, 1px); } /* Estava olhando pro campo */
    100% { transform: translate(0, 0); } /* Volta a olhar pra frente */
}

/* Classes aplicadas pelo JavaScript */
.gaze-to-field {
    animation: eyeGazeToField 0.3s ease-out forwards;
    animation-iteration-count: 1; /* Executa uma vez */
}

.gaze-back-forward {
    animation: eyeGazeBackForward 0.3s ease-out forwards;
    animation-iteration-count: 1; /* Executa uma vez */
}
.eye-anim-icon {
    width: 1.25em;
    height: 1.25em;
    vertical-align: middle;
}
/* Transição suave para a pálpebra e pupila */
.lid-transition {
    transition: d 0.3s ease-in-out;
}

.eye-pupil {
    transition: opacity 0.2s ease, transform 0.3s ease-out;
}

/* ESTADO: OLHO FECHADO (Senha Escondida) */
/* Mudamos o atributo 'd' do SVG para a linha curvar para baixo */
.closed #lid-senha {
    d: path("M0 8s3 5.5 8 5.5S16 8 16 8");
}

.closed #pupil-senha {
    opacity: 0; /* Esconde a pupila quando fecha */
}

/* ANIMAÇÃO: PISCAR (Apenas quando aberto) */
@keyframes blinkSimple {
    0%, 90%, 100% { d: path("M0 8s3-5.5 8-5.5S16 8 16 8"); }
    95% { d: path("M0 8s3 5.5 8 5.5S16 8 16 8"); }
}

.blinking #lid-senha {
    animation: blinkSimple 5s infinite;
}

/* MOVIMENTO DA PUPILA (Olhando para o campo) */
.gaze-to-field {
    transform: translate(-2.5px, 1.5px);
}
.closed .eye-lid {
    d: path("M0 8s3 5.5 8 5.5S16 8 16 8");
}

.closed .eye-pupil {
    opacity: 0;
}

/* ANIMAÇÃO: PISCAR */
.blinking .eye-lid {
    animation: blinkSimple 5s infinite;
}