{% extends "@FerienpassAdmin/layout/minimal.html.twig" %}
{% trans_default_domain 'admin' %}

{% block content %}

    <p class="mt-2 text-sm leading-5 text-gray-600 dark:text-gray-200 max-w">Geben Sie Ihre hinterlegte
        E-Mail-Adresse ein, wenn Sie Ihr Passwort zurücksetzen wollen.</p>

    {# Reset errors are surfaced as flash toasts (LostPasswordController flashes
       `error`, rendered by the Notifications component in the layout), not inline
       here — keeps this request form free of per-user state so it stays cacheable. #}

    <div class="mt-8">

        {{ form_start(form) }}

        <div class="space-y-6">
            {{ form_row(form.email) }}
        </div>

        <div class="mt-6 flex items-center justify-between gap-4">
            <twig:Admin:Button variant="ghost" href="{{ path('admin_login') }}" class="gap-1.5">
                <twig:ux:icon name="ph:arrow-left" class="size-3.5" />
                {{ 'MSC.backBT'|trans([], 'contao_default') }}
            </twig:Admin:Button>

            {{ form_widget(form.submit, { attr: { class: 'gap-2' } }) }}
        </div>

        {{ form_end(form) }}

    </div>

{% endblock %}
