/* Container principal */
.container {
    width: 90%;
    height: 80vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.212);
    margin: 0 auto;
}

/* Caixas das imagens */
.form-image, .form-image2 {
    width: 25%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fde3a7d7;
    padding: 1rem;
    overflow: hidden;
    position: relative;
}

/* Container do vídeo (esquerda) */
.form-image {
    order: 1;
    background-color: #000; /* Fundo preto para fallback */
}

/* Estilos para o vídeo */
#bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Fallback para quando o vídeo não carrega */
#video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none; /* Inicialmente escondido */
}

#video-fallback img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Botão de play para quando autoplay é bloqueado */
.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 12px 24px;
    background-color: #6b63fff1;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 10;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.video-play-button:hover {
    background-color: #5a52e0;
}

/* Imagem da direita */
.form-image2 {
    order: 3;
}

.form-image2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Formulário central */
.form {
    width: 50%;
    height: 100%;
    padding: 2rem;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    order: 2;
}

/* Cabeçalho do formulário */
.form-header {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
}
/* texto h1 "5 Historinhas em Japonês - Primeira Edição Livro 01"*/
.title h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
/* Linha azul embaixo h1 "5 Historinhas em Japonês - Primeira Edição Livro 01"*/
.title h1::after {
    content: '';
    display: block;
    width: 5rem;
    height: 0.3rem;
    background-color: #6c63ff;
    margin: 0.5rem 0;
    border-radius: 10px;
}

/* texto h2*/
.title h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    background-color: #fff;
}
/* texto h3*/
.title h3 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    background-color: #fff;
}
/* texto h4*/
.title h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    background-color: #4cb353;
    border-radius: 50px;
}

.title h4::after {
    content: '';
    display: block;
    width: 5rem;
    height: 0.3rem;
    background-color: #6c63ff;
    margin: 0.5rem 0;
    border-radius: 10px;
}



/* Botão "entrar" */
.login-button button {
    border: none;
    background-color: #6b63fff1;
    padding: 0.8rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.login-button button:hover {
    background-color: #6c63ff;
}

.login-button button a {
    text-decoration: none;
    font-weight: 500;
    color: #fff;
}

/* Botão de zap */
/* Container do botão - adicione estas propriedades */
.continue-button {
    display: flex;
    justify-content: center; /* Centraliza horizontalmente */
    width: 100%;
    margin: 1rem auto; /* Espaçamento superior e centralização */
    padding: 0 1rem; /* Padding lateral para responsividade */
}

/* Estilo do botão - ajuste conforme abaixo */
.continue-button {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 20px auto;
    padding: 0 20px;
}

/* Estilização do botão zap */
.continue-button button {
    width: 100%;
    margin-top: 2.5rem;
    border: none;
    background-color: #4cb353;
    padding: 0.62rem;
    border-radius: 50px;
    cursor: pointer;
}

/* Efeito hover */
.continue-button button:hover {
    background-color: #15d622;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Efeito ao clicar */
.continue-button button:active {
    transform: translateY(1px);
}


/* Letra Botão de zap */
.continue-button button a {
    text-decoration: none;
    font-size: 2.93rem;
    font-weight: 500;
    color: #fff;
}

/* Responsividade */
@media screen and (max-width: 1330px) {
    .container {
        flex-direction: column;
        height: auto;
    }
    
    .form-image, .form-image2 {
        width: 100%;
        height: 200px;
    }
    
    .form {
        width: 100%;
        padding: 2rem;
    }
    
    .input-box {
        width: 100%;
    }
    
    .gender-group {
        flex-direction: column;
    }
    
    .gender-input {
        margin-top: 0.5rem;
    }
}

@media screen and (max-width: 480px) {
    .form-header {
        flex-direction: column;
    }
    
    .login-button {
        margin-top: 1rem;
    }
    
    .title h1 {
        font-size: 1.5rem;
    }
    
    .form {
        padding: 1.5rem;
    }
}