{% extends 'security.html.twig' %}
{% block title %}Réinitialiser le mot de passe{% endblock %}
{% block content %}
<div {{ stimulus_controller('security--resetPassword') }}>
{{ form_start(requestForm, {'attr':{'class':'form w-100','novalidate':'novalidate','data-security--resetPassword-target':'requestForm'}}) }}
<div class="refonte-login custom-card-body bg-body rounded p-10 p-lg-15 mx-auto">
<div class="mb-5 container-logo ">
<a href="{{ path('app_login') }}">
{% if company is defined and company is not null and company.logoName is not null %}
<img style="max-width: 192px;height: auto;max-height: 75px;" width="auto" src="{{ asset('/uploads/images/company/') }}{{ company.logoName }}" class="app-logo" alt="my flow logo">
{% else %}
<img src="{{ asset('build/media/logo-myflow.png') }}" class="app-logo" alt="my flow logo" width="192"><br>
<span class="slogan">More than just a marketplace</span>
{% endif %}
</a>
<svg width="28" height="28" viewbox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_1_42)">
<path d="M28 14.1058L18.5578 18.7662L14.0031 28L9.30844 18.48L0 13.8911L9.44222 9.23067L14.0031 0L18.6978 9.51689L28 14.1058Z" fill="#F676BD" fill-opacity="0.42"/>
</g>
<defs>
<clipPath id="clip0_1_42">
<rect width="28" height="28" fill="white"/>
</clipPath>
</defs>
</svg>
<h1 class="color-second">Mot de passe oublié ?
</h1>
<p class="color-second">Entrez votre adresse email pour<br/> réinitialiser votre mot de passe</p>
</div>
{# <div class="text-center mb-10">
<h1 class="titillium-web-bold text-dark mb-3">Mot de passe oublié ?</h1>
<div class="text-gray-400 fw-bold fs-4">Entrez votre adresse email pour réinitialiser votre mot de passe</div>
</div> #}
<div class="fv-row mb-10 position-center form-login" style="flex-direction: column;margin: auto;align-items: center;text-align: center;">
{{ form_widget(requestForm.email, {'attr':{'class': requestForm.email.vars.errors|length ? 'form-control is-invalid custom-input-size':'form-control custom-input-size'}}) }}
{{ form_errors(requestForm.email) }}
</div>
<div class="d-flex flex-wrap justify-content-center pb-lg-0">
<button type="button" id="kt_password_reset_submit" class="titillium-web-bold btn btn-lg btn-primary-custom fw-bolder me-4" {{ stimulus_action('security--resetPassword', 'submitRequestForm') }}>
<span class="indicator-label">Soumettre</span>
<span class="indicator-progress">Envoi en cours...
<span class="spinner-border spinner-border-sm align-middle ms-2"></span>
</span>
</button>
<a href="{{ path('app_login') }}" class="titillium-web-bold btn btn-lg btn-light-primary fw-bolder">Annuler</a>
</div>
{{ form_end(requestForm) }}
</div>
</div>
{% endblock %}