g.siteTitle;
                    document.getElementById('page-title').textContent = `${config.siteTitle} - Login`;

                    // Then check PIN requirements
                    await checkPinRequired();
                } catch (err) {
                    console.error('Error during initialization:', err);
                    document.getElementById("pin-description").textContent = '';
                    pinError.textContent = err;
                }
            };

            // Check if PIN is 