rn = '[0-9]*';
                        input.setAttribute('autocomplete', 'off');
                        container.appendChild(input);
                    }

                    // Handle input behavior
                    const inputs = container.querySelectorAll('.pin-input');
                    
                    // Focus first input immediately
                    if (inputs.length > 0) {
                        inputs[0].focus();
                    }

                    inputs.forEach((input, ind