تأكيد البريد الإلكتروني
= 4 ? 0 : i - 1)"
@input="
let typed = $event.target.value.replace(/[^0-9]/g, '');
if (typed.length >= 4) { fillOtp(typed, 0); return; }
typed = typed.slice(-1);
otpDigits[i - 1] = typed;
if (typed && i < 4) $refs.otpBoxes.querySelectorAll('input')[i].focus();
"
@keydown.backspace="if (!otpDigits[i - 1] && i > 1) $refs.otpBoxes.querySelectorAll('input')[i - 2].focus();"
class="w-14 h-14 text-center text-2xl font-bold bg-white dark:bg-slate-800 border border-gray-200 dark:border-slate-700 rounded-xl text-text-main-light dark:text-text-main-dark outline-none focus:border-primary focus:ring-4 focus:ring-primary/10 transition-all"
>