{% if admin_favicon %}
{% else %}
{% endif %}
{% from "macros.html" import icon, flash %}
{{ icon('shield', 28) }}
{{ t('Two-factor Auth') }}
{{ t('Enter the 6-digit code from your app') }}
{# Flash messages #} {% set flashes = get_flashed_messages() %} {% if flashes %}
{% for f in flashes %} {{ flash(f.message, f.category | default('error')) }} {% endfor %}
{% endif %}
{{ request.csrf_input() }}
{{ form.code._label }}
{{ form.code.input(placeholder='000 000', autofocus=True, inputmode='numeric', pattern='[0-9]{6}', maxlength='6', style='font-size:1.75rem; letter-spacing:0.4em; text-align:center; height:60px; font-weight:700; color:var(--brand)') }} {% if form.code.error %}
{{ icon('x', 14) }} {{ form.code.error }}
{% endif %}
{{ icon('check', 16) }} {{ t('Verify & Sign In') }}
{{ icon('arrow-left', 12) }} {{ t('Back to Sign in') }}