<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>WEB MOD</title>
    <style>
        /* Basic styles for the popup */
        .popup-container {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            align-items: center;
            justify-content: center;
            z-index: 9999;
        }
        .popup-box {
            background-color: rgba(0, 0, 0, 0.2); /* Semi-transparent */
            padding: 15px;
            border-radius: 10px;
            text-align: center;
            box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
            width: 280px;
        }
        .popup-box h3 {
            color: #FF00FF;
            margin-bottom: 15px;
        }
        .popup-box button {
            display: block;
            width: 100%;
            padding: 8px;
            margin-bottom: 8px;
            background-color: rgba(10, 10, 10, 0.2); /* Semi-transparent */
            color: #FF00FF;
            border: 2px solid #FF00FF;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        .popup-box button:hover {
            color: #0a0a0a;
            background-color: #FF00FF;
            box-shadow: 0 0 20px rgba(255, 0, 255, 1), 0 0 30px rgba(255, 0, 255, 0.8);
        }
        /* Particle.js background */
        #particles-js {
            position: absolute;
            width: 100%;
            height: 100%;
            z-index: 1; /* Behind content but above the background */
        }
        /* Background image */
        #backgroundImage {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: 0; /* Behind everything */
            opacity: 0.4; /* Slight transparency */
        }
        body {
            margin: 0;
            padding: 0;
            font-family: 'Courier New', monospace;
            background: #000000;
            color: #FF00FF;
            height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            overflow: hidden;
        }
        /* Blinking background animation */
        @keyframes blink-background {
            0%, 100% { background-color: rgba(0, 0, 0, 0.8); }
            50% { background-color: rgba(0, 0, 0, 0.6); }
        }
        .login-container {
            position: relative;
            z-index: 2;
            background: rgba(10, 10, 10, 0.2); /* Semi-transparent */
            padding: 20px;
            border-radius: 30px;
            box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
            width: 90%;
            max-width: 400px;
            text-align: center;
            animation: blink-background 2s infinite;
            overflow: hidden;
            margin: 20px;
        }
        .logo {
            margin-bottom: 15px;
        }
        .logo img {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            border: 3px solid #FF00FF;
            padding: 5px;
        }
        .server-status {
            font-size: 14px;
            color: #FF00FF;
            margin-top: 10px;
            margin-bottom: 20px;
            text-align: center;
            overflow: hidden;
            white-space: nowrap;
            border-right: .15em solid #FF00FF;
            box-sizing: border-box;
            animation: typing 4s steps(40, end), blink-caret .75s step-end infinite;
        }
        @keyframes typing {
            from { width: 0 } to { width: 100% }
        }
        @keyframes blink-caret {
            from, to { border-color: transparent }
            50% { border-color: #FF00FF }
        }
        .form-container {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .input-group {
            margin-bottom: 15px;
            width: 85%;
            text-align: left;
        }
        .input-group label {
            font-size: 14px;
            margin-bottom: 5px;
            display: block;
            color: #FF00FF;
            text-transform: uppercase;
        }
        .input-group input {
            width: 100%;
            padding: 6.8px;
            border: 2px solid #FF00FF;
            border-radius: 10px;
            background-color: rgba(10, 10, 10, 0.8); /* Semi-transparent */
            color: #FF00FF;
            font-size: 16px;
            outline: none;
            transition: all 0.3s ease;
        }
        .button-group {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            width: 100%;
            margin-top: 15px;
        }
        .login-button, .get-key-button {
            padding: 12px 20px;
            margin-bottom: 10px;
            background-color: rgba(10, 10, 10, 0.8); /* Semi-transparent */
            color: #FF00FF;
            border: 2px solid #FF00FF;
            border-radius: 50px;
            font-size: 14px;
            cursor: pointer;
            text-transform: uppercase;
            transition: all 0.3s ease;
        }
        .login-button:hover, .get-key-button:hover {
            color: #0a0a0a;
            background-color: #FF00FF;
            box-shadow: 0 0 20px rgba(255, 0, 255, 1), 0 0 30px rgba(255, 0, 255, 0.8);
        }
        /* Error message */
        .error-message {
            background-color: rgba(255, 0, 0, 0.8);
            padding: 10px;
            border-radius: 10px;
            text-align: center;
            max-width: 300px;
            width: 100%;
            box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
            font-size: 16px;
            font-weight: bold;
            margin-top: 10px;
        }
    </style>
</head>
<body>
    <img id="backgroundImage" src="https://iili.io/2Qim7Bp.md.png" alt="Background">
    <div id="particles-js"></div>
    <div class="login-container">
        <div class="logo">
            <img src="https://iili.io/2Qim7Bp.md.png" alt="Logo">
            <h4>PRIVATE SERVER</h4>
        </div>
        <div class="server-status">MOD BY HRITHIK</div>
        <form action="game.php" class="form-container" onsubmit="return validateLicenseKey()">
            <div class="input-group">
                <label for="license_key">License Key</label>
                <input type="text" id="license_key" name="license_key" required="">
            </div>
            <div class="button-group">
                <button type="submit" class="login-button">LOGIN</button>
                <button type="button" class="get-key-button" onclick="redirectToTelegram()">GET KEY</button>
            </div>
        </form>
        <div id="error-message" class="error-message" style="display: none;">Incorrect License Key</div>
    </div>

    <script>
        function redirectToTelegram() {
            window.location.href = "https://t.me/HRITHIK_XYZ"; // Your Telegram group link
        }

        function validateLicenseKey() {
            const licenseKey = document.getElementById("license_key").value;
            const errorMessage = document.getElementById("error-message");

            // Replace this with your actual valid license key
            const validLicenseKey = "2025K"; // Change this with your key

            // Check if the entered license key is valid
            if (licenseKey !== validLicenseKey) {
                errorMessage.style.display = "block"; // Show error if incorrect
                return false; // Prevent form submission
            }

            // If license key is correct, hide the error message
            errorMessage.style.display = "none";

            // Redirect after successful login (1-second delay)
            setTimeout(() => {
                window.location.href = "VIP2K"; // Redirect to your desired page
            }, 1000);

            return false; // Prevent form submission
        }

        // Particle.js setup
        particlesJS("particles-js", {
            particles: {
                number: {
                    value: 100
                },
                size: {
                    value: 3
                },
                move: {
                    speed: 1
                }
            }
        });
    </script>
</body>
</html>
