<!DOCTYPE html>
<html lang="de">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>BunzoBuddy 5 Developer Portal</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f9;
            margin: 0;
            padding: 0;
            text-align: center;
        }
        h1 {
            color: #333;
        }
        .hidden {
            display: none;
        }
        .error {
            color: red;
            font-size: 18px;
        }
        .input-field {
            padding: 10px;
            margin: 10px;
            width: 80%;
            max-width: 300px;
            font-size: 16px;
            border: 1px solid #ccc;
            border-radius: 5px;
        }
        button {
            padding: 10px 20px;
            font-size: 16px;
            border: none;
            background-color: #4CAF50;
            color: white;
            cursor: pointer;
            border-radius: 5px;
            margin-top: 10px;
        }
        button:hover {
            background-color: #45a049;
        }
        #downloadSection {
            margin-top: 20px;
        }
        .footer {
            position: absolute;
            bottom: 10px;
            width: 100%;
            text-align: center;
        }
        .footer a {
            color: #007BFF;
            text-decoration: none;
            font-size: 18px;
        }
        .footer a:hover {
            text-decoration: underline;
        }
    </style>
</head>
<body>
    <h1>BunzoBuddy 5 Developer Portal</h1>
    <p>Bitte logge dich ein, um Zugriff auf die Entwicklerressourcen zu erhalten.</p>

    <!-- Login Form -->
    <input type="email" id="email" class="input-field" placeholder="E-Mail-Adresse">
    <input type="password" id="password" class="input-field" placeholder="Passwort">
    <button onclick="checkCredentials()">Zugriff überprüfen</button>

    <div id="errorMessage" class="error hidden">Zugriff verweigert. E-Mail oder Passwort ist falsch.</div>

    <!-- Download Section (Hidden by Default) -->
    <div id="downloadSection" class="hidden">
        <h2>Download BunzoBuddy 5</h2>
        <a href="YOUR_FILE_URL_HERE" download>
            <button>Download BunzoBuddy 5</button>
        </a>
    </div>

    <!-- Footer Section -->
    <div class="footer">
        <p>© 2024 BunzoBuddy 5 Developer Portal</p>
        <a href="https://official-website-link.com" target="_blank">Official Website</a>
    </div>

    <script>
        // Festgelegte E-Mails und Passwörter
        const whitelist = {
            "tylerbossen@web.de": "pcBpJ01575JYwNovYSal",
            "bonzileo66@gmail.com": "Ujne69pWczQL7opT97KQ",
            "LocalHost.com": "LocalHost"
        };

        function checkCredentials() {
            const emailInput = document.getElementById("email").value;
            const passwordInput = document.getElementById("password").value;
            const downloadSection = document.getElementById("downloadSection");
            const errorMessage = document.getElementById("errorMessage");

            // Überprüfen, ob die E-Mail und das Passwort übereinstimmen
            if (whitelist[emailInput] === passwordInput) {
                downloadSection.classList.remove("hidden");
                errorMessage.classList.add("hidden");
            } else {
                downloadSection.classList.add("hidden");
                errorMessage.classList.remove("hidden");
            }
        }
    </script>
</body>
</html>
