
body,
html {
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scrollbar-color: #1a538f transparent;
    scrollbar-width: thin;

}

/* --- Background Lateral (Mesmo estilo do Login) --- */
.bg-login-wrapper {
    position: relative;
    overflow: hidden;
    height: 100vh;
    /* Garante que a imagem fique fixa enquanto o lado direito pode rolar */
    position: sticky;
    top: 0;
}

.logo-animated-container {
    filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.3));
}

.logo-svg {
    width: 100%;
    height: auto;
    fill: none;
    stroke: white;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.casa-path {
    opacity: 0.8;
}

/* Animação das Ondas */
.onda {
    stroke-width: 3;
    opacity: 0.9;
    animation: waveMove 3s ease-in-out infinite;
    transform-origin: center;
}

/* Delay para criar o efeito de cascata orgânica */
.onda-1 {
    animation-delay: 0s;
}

.onda-2 {
    animation-delay: 0.2s;
}

.onda-3 {
    animation-delay: 0.4s;
}

@keyframes waveMove {
    0%, 100% {
        transform: translateY(0) scaleX(1);
    }
    50% {
        /* A onda sobe levemente e "estica" */
        transform: translateY(-2px) scaleX(1.05);
        stroke: #2dbf73; /* Cor que puxa do seu gradiente verde */
    }
}

/* Efeito extra: O logo "respira" suavemente */
.logo-svg {
    animation: breathing 6s ease-in-out infinite;
}

@keyframes breathing {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
}

.bg-login-image {
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    /* Adicionamos um leve blur inicial e brilho para profundidade */
    filter: brightness(0.8);
    animation: kenBurnsEnhanced 25s ease-in-out infinite alternate;
}

@keyframes kenBurnsEnhanced {
    0% {
        transform: scale(1) translate(0, 0);
    }
    50% {
        /* Um leve deslocamento lateral evita que pareça apenas um zoom estático */
        transform: scale(1.1) translate(-1%, 1%);
    }
    100% {
        transform: scale(1.18) translate(1%, -1%);
    }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Gradiente animado para dar movimento às cores */
    background: linear-gradient(135deg,
    rgba(13, 110, 253, 0.6),
    rgba(45, 191, 115, 0.6),
    rgba(13, 110, 253, 0.6));
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
    z-index: 1;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}


/* --- Seção do Formulário --- */
.form-section {
    background-color: #ffffff;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.form-wrapper {
    width: 100%;
    max-width: 400px;
    margin: auto;
    padding: 3rem 2rem;
    animation: slideUpFade 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes slideUpFade {
     from {
         opacity: 0;
         transform: translateY(40px);
     }
     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

.logo-img {
    max-width: 150px;
    height: auto;
    margin-bottom: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.btn-back {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    padding: 8px 16px;
    font-weight: 600;
    color: #444;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-back:hover {
    background: #fff;
    transform: translateX(-5px);
    color: #0d6efd;
}

.btn-primary-ib {
    background: linear-gradient(90deg, #0d6efd, #0b5ed7);
    border: none;
    font-weight: 600;
    transition: transform 0.2s;
}

.btn-primary-ib:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.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;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.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: 20px 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 */
}
