{% import '@SyliusUi/Macro/messages.html.twig' as messages %}

{% if last_error %}
    {{ messages.error(last_error.messageKey|trans(last_error.messageData, 'security')) }}
{% endif %}
<p class="h3">{{ 'app.ui.login.title_login_form'|trans }}</p>
{{ form_row(form._username, sylius_test_form_attribute('login-username')) }}
{{ form_row(form._password, sylius_test_form_attribute('login-password')) }}
{{ form_row(form._remember_me, {'label_attr': {'class':'custom-switch'}}) }}
