ex + i + 1].focus();
                                        } else {
                                            // If paste fills all inputs, submit the form
                                            const pin = Array.from(inputs).map(input => input.value).join('');
                                            submitPin(pin, inputs);
                                        }
                                    }
                                });
                            }
                        });