{% block error %}
{% if error %}
<div class="alert alert-danger">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
{% endif %}
{% endblock %}
{% block form %}
<form method="post" action="{{ path('app_login') }}">
<fieldset>
<div class="login-wrapper">
{# <legend class="text-center">Je me connecte</legend> #}
<h3 class="text-center">Je me connecte</h3>
<div class="form-group mt-4">
<label for="inputEmail">Identifiant*</label>
<input type="email" class="form-control" name="email" id="inputEmail" required autofocus>
</div>
<div class="form-group mb-0">
<label for="inputPassword">Mot de passe*</label>
<input type="password" class="form-control" name="password" id="inputPassword" required>
</div>
<p class="text-end mt-3">
<a class="link" href="{{ path('kiwi_forgotten_password_user') }}">Mot de passe oubliƩ ?</a>
</p>
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
{% if target_path is defined and target_path is not null %}
{% if target_path_params is defined and target_path_params is not null %}
<input type="hidden" name="_target_path" value="{{ path(target_path, target_path_params) }}" />
{% else %}
<input type="hidden" name="_target_path" value="{{ path(target_path) }}" />
{% endif %}
{% endif %}
<div class="btn-bar">
<button class="btn btn-primary col-md-12 mt-4" type="submit">Connexion</button>
<p class="champs-obligatoire mt-3">*Champs obligatoires</p>
</div>
</div>
<div class="modal-register-wrapper">
<h2 class="text-center mt-4">Pas encore membre ?</h2>
<div class="btn-bar text-center mt-3">
<a href="{{ path(register_path | default('kiwi_register_user')) }}" class="btn btn-secondary col-md-12">Je m'inscris</a>
</div>
</div>
</fieldset>
</form>
{% endblock %}