document.addEventListener('DOMContentLoaded', () => {
    const discordLoginBtn = document.getElementById('discord-login-btn');

    discordLoginBtn.addEventListener('click', () => {
        // Discord OAuth2 konfiguráció
        const CLIENT_ID = 'YOUR_DISCORD_CLIENT_ID';
        const REDIRECT_URI = encodeURIComponent('YOUR_REDIRECT_URI');
        const DISCORD_AUTH_URL = `https://discord.com/api/oauth2/authorize?client_id=${CLIENT_ID}&redirect_uri=${REDIRECT_URI}&response_type=code&scope=identify%20email`;

        // Átirányítás a Discord engedélyezési oldalára
        window.location.href = DISCORD_AUTH_URL;
    });
});