A two-factor verification screen asks for a second proof of identity after the password. Our examples show a six-digit code input with three digits entered, a resend countdown, a trust-this-device checkbox and a backup-code link, designed for web and mobile in eight visual styles with light and dark versions. Every example is an original design that comes with its HTML code and a DESIGN.md of colour, type and spacing tokens, in light and dark. Free to use and adapt.
16 examples
Separate boxes look clear, but they must behave like a single field: accept paste, move focus automatically, support backspace across boxes and work with autofill. A single well-styled input with wide letter spacing is simpler to build accessibly and works just as well.
It lets the person skip the second factor on that browser or device for a set period, usually by storing a secure token. Say how long the trust lasts, and let people review and revoke trusted devices from their security settings.
Auto-submitting once all digits are entered saves a step and works well for most people. Keep a visible Verify button as well for clarity and assistive technology, and show errors inline next to the input without clearing the code entirely.
App screens
UI components
Website sections
Website templates
search_ui_screens (e.g. “billing settings, editorial style”), get_ui_flow for a whole journey, and get_ui_screen_code to pull the HTML and DESIGN.md straight into your project.