          input.autocomplete = 'off';
                    
                    input.addEventListener('input', (e) => handlePinInput(e, i));
                    input.addEventListener('keydown', (e) => handlePinKeydown(e, i));
                    input.addEventListener('paste', (e) => e.preventDefault());
                    
                    pinContainer.appendChild(input);
                    pinDigits.push(input);
                }
            }

            // Handle PIN input
            const handl