@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #2f2841;
}

section {
    width: 100vw; /* Ocupa toda a largura da viewport */
    height: 100vh; /* Ocupa toda a altura da viewport */
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.figura {
    width: 50%; /* Ocupa 50% da largura da tela */
    height: 100%;
    padding: 20px;
    background: #66D983;
    display: flex;
    justify-content: center;
    align-items: center;
}

.formulario {
    width: 50%;
    padding: 40px;
    background: #2f2841;
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Imagem */
.ilustra img {
    max-width: 100%;
    height: auto;
}

/* Estilo de textos */
.formulario h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.formulario p {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 20px;
}

/* Menu e formulário */
.menu-form {
    list-style: none;
    margin-bottom: 20px;
}

.menu-form li {
    display: inline-block;
    margin-right: 15px;
}

.menu-form li a {
    text-decoration: none;
    color: #fff;
    border-bottom: 2px solid #fff;
    padding-bottom: 5px;
}

.formulario form {
    max-width: 300px;
    margin: 0 auto;
}

.formulario input {
    padding: 10px;
    border-radius: 5px;
    border: none;
    width: 100%;
    margin-bottom: 10px;
    outline: none; /* Remove a borda ao focar */
}

.formulario input:focus {
    outline: none; /* Remove borda ao focar */
}

.btn-login {
    background-color: #fff;
    color: #66D983;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.esqueceu {
    display: block;
    margin-top: 10px;
    color: #fff;
    text-decoration: none;
}

.esqueceu:hover {
    color: #66D983;
    transition: color 0.3s ease;
}

/* Seta para voltar */
.seta-voltar {
    position: absolute;
    top: 20px;
    left: 20px;
    text-decoration: none;
    width: 50px; /* Tamanho da área de clique */
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent; /* Fundo transparente */
    transition: all 0.3s ease;
}

.seta-voltar:hover {
    background-color: #2f2841; /* Fundo ao passar o mouse */
    border-radius: 50%; /* Arredonda os cantos */
}

/* Responsividade */
@media (max-width: 768px) {
    body {
        height: auto;
        align-items: flex-start; /* Ajusta o alinhamento no mobile */
    }

    section {
        flex-direction: column;
        height: auto; /* Permite que a altura seja dinâmica */
    }

    .figura, .formulario {
        width: 100%; /* Ocupa 100% da largura em telas pequenas */
        padding: 20px;
        height: auto; /* Ajusta a altura conforme o conteúdo */
    }

    .seta-voltar {
        top: 10px;
        left: 10px;
        width: 40px;
        height: 40px;
    }
}



.character {
    position: fixed;
    left: -300px;
    top: 50%;
    width: auto;
    height: auto;
    z-index: 1000;
}

.character img {
    width: 100px;
    height: 100px;
}

.character.move {
    animation: moveRight 3s linear forwards;
}

@keyframes moveRight {
    from {
        left: -300px;
    }
    to {
        left: 100%;
    }
}