You can ask for mobile number on page 1 and on click on continue …trigger a process and in process use a random generation and generate a number and we can use twillo api to send messages and also give the number generated back to process…and when the number is entered on screen compare it with the otp sent to mobile and if it matches perform the login
Cheers