<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Login</title>
    <!-- Ionicons Script Pack -->
    <script type="module" src="https://unpkg.com/ionicons@7.1.0/dist/ionicons/ionicons.esm.js"></script>
    <script nomodule src="https://unpkg.com/ionicons@7.1.0/dist/ionicons/ionicons.js"></script>
    <style type="text/css">
        body {
            font-family: Arial, sans-serif;
            background-color: #f0f0f0;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
        }

        .login-container {
            background-color: white;
            padding: 40px;
            border-radius: 10px;
            border: 3px solid #ff073a; /* Neon red border */
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.7); /* Black shadow */
            width: 250px;
            height: 250px;
            transform: perspective(500px);
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .login-container h2 {
            text-align: center;
            margin-bottom: 20px;
            font-size: 18px;
        }

        .input-group {
            margin-bottom: 20px;
            position: relative;
            width: 100%;
        }

        .input-group input {
            width: 100%;
            padding: 10px 35px 10px 35px;
            border: 1px solid #ccc;
            border-radius: 8px;
            font-size: 16px;
            background-color: #f9f9f9;
            transition: all 0.3s ease;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            box-sizing: border-box;
        }

        .input-group input:focus {
            outline: none;
            border-color: #007BFF;
            box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
            transform: translateY(-5px);
        }

        .btn {
            width: 100%;
            padding: 10px;
            background-color: #007BFF;
            border: none;
            border-radius: 8px;
            color: white;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        .btn:hover {
            background-color: #0056b3;
            transform: translateY(-5px);
            box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
        }

        .toast {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background-color: #ff4d4d;
            color: white;
            padding: 10px 20px;
            border-radius: 5px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            display: none;
        }
    </style>
</head>
<body>
    <div class="login-container">
        <h2>LOGIN HERE &nbsp;</h2>
        <form id="loginForm">
            <div class="input-group">
                <input id="keyInput" name="key" placeholder="Enter your key" required="" type="text" />
            </div>
            <button class="btn" onclick="checkKey()" type="button">Login</button>
        </form>
    </div>

    <div class="toast" id="toast">ONLY BUY KEYS FROM @TEAM_KBT_OWNER1</div>
    <script>
        function showToast(message) {
            const toast = document.getElementById('toast');
            toast.textContent = message;
            toast.style.display = 'block';
            setTimeout(() => {
                toast.style.display = 'none';
            }, 3000);
        }

        function checkKey() {
            const key = document.getElementById('keyInput').value;
            if (key === "TEAM_KBT") {
                window.location.href = "Calucation.php";
            } else {
                showToast("ONLY BUY KEYS FROM @TEAM_KBT_OWNER1");
            }
        }
    </script>
</body>
</html>