st-result').innerHTML =
                    `<div class="error">‚ùå Error: ${error.message}</div>`;
            }
        }

        // Handle signup form submission
        document.getElementById('signup-form').addEventListener('submit', async (e) => {
            e.preventDefault();

            if (!currentCsrfToken) {
                document.getElementById('signup-result').innerHTML =
                    `<div class="error">‚ùå Please get a CSRF token first</div>`;
                return;
    