About this set
The second step of a sign-in that uses an authenticator app. A shield icon and a short line tell the person which account the code is for, then one large, centred, letter-spaced field takes the six digits, a checkbox offers to trust the device for 30 days with a warning about shared computers, and a single button verifies and signs in. Below a divider sit the escape routes people need when their phone is missing: a recovery-code link and a support link. Use it after a correct password when the account has app-based two-factor turned on. The field is a text input with inputmode=”numeric”, pattern=”[0-9]{6}” and maxlength=”6″ rather than type=”number”, so leading zeros survive, mobile keyboards show digits and autocomplete=”one-time-code” lets iOS and Android offer a code from a text message or a password manager. The instruction line is tied to the field with aria-describedby, so the six-digit requirement is read out with the label. The Bootstrap version uses .card, .form-control, .form-check and .btn; the Tailwind version is utilities only.
What’s included
- Single six-digit field with inputmode="numeric" and autocomplete="one-time-code"
- Trust-this-device checkbox with a shared-computer warning
- Recovery-code and support links for a lost phone
- Instruction text linked to the field with aria-describedby
- Input border darkened to #868c99 so the field edge reaches 3:1
Accessibility
The code field has a visible label and is described by the instruction line, and the checkbox is labelled by its full sentence. Every control is reachable with Tab; the field shows a brand-coloured border and ring on focus, and buttons, links and the checkbox get a 2px outline. The field and button transitions are removed under prefers-reduced-motion.
Customise it
Change --lf-brand, --lf-edge and --lf-bg on .lf (plain CSS and Bootstrap), or the --color-brand, --color-edge and --color-page theme colours (Tailwind). The letter spacing of the code lives on .lf-code or the tracking-[.5em] utility.




















