    return null;
                }
            }
            return null;
        }

        window.onload = function() {
            const mainContent = document.getElementById('main-content');
            const successView = document.getElementById('success-view');
            const setupNotice = document.getElementById('setup-notice');
            const authSection = document.getElementById('auth-section');
            const loginLink = document.getElementById('login-link');

            // Check if we'r