Skip to content

Ride App Phone Number Login with Country Picker

Ride app phone number login screen with a searchable country code bottom sheet, live number formatting, a terms checkbox and an SMS code step.

Also known as: phone number login screen, country code picker, mobile number input with country code, sms login ui, taxi app login screen

Ride App Phone Number Login with Country Picker live demo

Open in new tab

Bootstrap 5 code (HTML, CSS, JS)

A ride app phone number login screen with a country code picker in a bottom sheet, live number formatting, a terms checkbox and an SMS code step. This HTML mobile template for mobile sites and PWAs is built with Bootstrap 5, Bootstrap Icons and flag-icons, works as a mobile number input with country code for taxi, delivery or any passwordless sign-in, and can be packaged with Capacitor.

How it works

The root .rdl-app is a centred app column with a dark header (an inline SVG street map with a lime route) and a white .rdl-sheet that holds three steps: phone, code and done ([data-rdl-step]).

The .rdl-country button opens #rdl-countries, a Bootstrap offcanvas styled as a bottom sheet. Its list is rendered from the COUNTRIES array in script.js; the search field filters by country name or dial code and shows an empty state when nothing matches. Picking a country updates the flag, the dial code, the placeholder and the number format. The sheet closes with the X button, Escape or a tap on the backdrop.

The type="tel" input is reformatted on every keystroke with the selected country's mask and limited to its length. Continue checks the number length and the terms checkbox, shows inline errors, then simulates sending a code. The code step has four one-digit inputs with auto advance, Backspace, arrow keys and paste; a full code is checked automatically. A resend timer counts down from data-rdl-seconds. Help, email sign-in and the pickup button show a Bootstrap toast.

Customization

  • --rdl-lime in style.css (on .rdl-app): the accent of the buttons, route line, logo dot and success badge.
  • --rdl-radius on .rdl-app: the 14 px radius of the phone field, code cells and buttons.
  • COUNTRIES in script.js: add rows as code, name, dial code, mask (# = digit) and example number.
  • data-rdl-code on .rdl-app: the demo code (4826); remove .rdl-demo and check the code on your server.
  • data-rdl-seconds on .rdl-app: the resend wait time in seconds.
  • Replace the timeout in the phone form submit handler with fetch() to your SMS endpoint.
  • Edit .rdl-map paths to change the street pattern in the header.

Use cases

  • Ride-hailing and taxi apps: sign in with a mobile number before booking a trip.
  • Food and grocery delivery apps: verify the number couriers will call.
  • Scooter and bike sharing PWAs: quick passwordless login at the vehicle.
  • Marketplaces and booking apps: phone-first sign-up for international users.

Accessibility

The country button has a descriptive aria-label that names the current country. The bottom sheet uses Bootstrap's offcanvas focus handling and returns focus to the button when it closes; options are buttons with aria-pressed, and the number of search results is announced. Errors are linked with aria-describedby, set aria-invalid and live in polite regions. Code cells use inputmode="numeric" and autocomplete="one-time-code". All targets are at least 44 px, focus outlines are visible and transitions stop with prefers-reduced-motion.

Ride App Phone Number Login with Country Picker at a glance

Framework
Bootstrap 5
Code
HTML, CSS, JavaScript
JavaScript
Vanilla JavaScript, no jQuery
Dependencies
Bootstrap 5, Bootstrap Icons, flag-icons, fonts.googleapis.com
Layout
Mobile-first app screen, centred on wider screens
Category
Mobile Login & Sign Up
License
Free for personal and commercial use

Questions about this template

Can I use the Ride App Phone Number Login with Country Picker code for free?

Yes. You can copy or download the code and use it in personal and commercial projects, including client work. No sign-up is needed. Reselling it as part of a component library or template collection is not allowed; see the license.

How do I add it to my website?

Load Bootstrap 5 and Bootstrap Icons and flag-icons and fonts.googleapis.com from a CDN (the links are under Requirements). Paste the HTML where the component should appear, add the CSS to your stylesheet and load the JavaScript before the closing </body> tag. Download HTML gives you a complete page with everything already linked.

Does it need jQuery or a JavaScript framework?

No. The script is plain vanilla JavaScript, so it works without jQuery, React or Vue. You can still use the markup inside those frameworks.

Can I turn this screen into an iOS or Android app?

Yes. It is plain HTML, CSS and JavaScript, so it works in a mobile website or progressive web app as it is. To ship it as a store app, put it in the web folder of a Capacitor or Cordova project and build it for iOS and Android; replace the sample data with calls to your own API.

How does it look on a desktop screen?

The screen is designed for phones. On wider screens it stays at phone width in the middle of the page, so it still looks like an app. The live demo opens at mobile width; use the Tablet and Desktop buttons to check other sizes.

Requirements

Add these to your page (already included in the download):

  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css">
  • <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/flag-icons@7.2.3/css/flag-icons.min.css">
  • <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap">
Ride App Phone Number Login with Country Picker – free Bootstrap 5 mobile login & sign up template
Ride App Phone Number Login with Country Picker · free Bootstrap 5 mobile login & sign up template

More Mobile Login & Sign Up

Workspace App Sign In with SSO – free Bootstrap 6 mobile login & sign up template

Workspace App Sign In with SSO

Workspace app sign in screen that asks for a work email first, then shows a single sign-on button or a password field based on the domain: an SSO login UI for team apps.

Kids Learning App Parent Login – free Pure CSS mobile login & sign up template

Kids Learning App Parent Login

Kids learning app parent login screen with a maths parent gate that unlocks the email and password sign-in form, plus a password reset bottom sheet.

Banking App Login with Biometric Option – free Bootstrap 6 mobile login & sign up template

Banking App Login with Biometric Option

Banking app login screen with a 6-digit PIN keypad, simulated Face ID and fingerprint sign-in, forgot PIN sheet and account switcher: a secure mobile bank PIN login UI.

Passwordless Magic Link Login – free Pure CSS mobile login & sign up template

Passwordless Magic Link Login

Passwordless magic link login screen for mobile apps: email-only sign in that switches to a check-your-inbox state with an open mail app button and resend countdown.

Forgot Password Flow Screens – free Tailwind CSS mobile login & sign up template

Forgot Password Flow Screens

Forgot password flow screens for mobile apps: email step, 6-digit verification code, new password with strength rules and confirmation, then a success state.

Mobile Sign Up with Password Strength – free Pure CSS mobile login & sign up template

Mobile Sign Up with Password Strength

Mobile sign up screen with name, email and a password strength meter, live password rules checklist, terms checkbox, validation and a verify-your-email state.