<div th:fragment="_forgot-password">

    <div>
        <h5 class="text-primary" th:text="#{login.password-recovery.title}">Recuperar contraseña</h5>
    </div>

    <form th:if="${form == '_forgot-password'}" th:action="@{/auth/password/forgot}" method="post">
        <input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}" />

        <div class="mb-3">
            <label for="username" class="form-label" th:text="#{login.email}">Correo electrónico</label>
            <input type="email" class="form-control" id="username" th:placeholder="#{login.email-placeholder}"
                name="username">
        </div>

        <div class="mt-4">
            <button class="btn btn-secondary w-100" type="submit" th:text="#{login.password-recovery.button}">Recuperar
                contraseña</button>
        </div>
    </form>
</div>