About this set
A passwordless login that sends a one-time code by text message. The card asks for a mobile number in one combined field: a country calling-code select with flags on the left and the national number on the right, sharing a single border and focus ring. A small legal line about message rates links to the terms and privacy policy, a Send code button submits, and an or divider leads to a Sign in with email instead button. Use it for consumer apps where phone numbers are the primary identifier, or as the first half of a flow that continues with a one-time-code screen. Both halves carry autocomplete tokens, tel-country-code on the select and tel-national on the input, so browsers can fill them from a saved phone number, and the input uses type=”tel” for the phone keypad. The Bootstrap version builds the field from .input-group, .form-select and .form-control, with the focus ring moved to the group; the Tailwind version uses a flex row with focus-within utilities.
Whatโs included
- Calling-code select and number joined into one field
- autocomplete="tel-country-code" and "tel-national"
- type="tel" for the numeric phone keypad
- Legal line with terms and privacy links above the button
- Email fallback button under an or divider
Accessibility
The number input has the visible label Mobile number and the select is named Country calling code. The joined field shows a brand ring whenever either part has focus, and buttons and links get a 2px outline. Border and focus transitions are removed under prefers-reduced-motion.
Customise it
Edit the option list for your countries. Colours are --lf-brand, --lf-edge and --lf-bg on .lf (plain CSS and Bootstrap) or the --color-* theme values (Tailwind); the select's width is capped at 118px.




















