{% extends 'frontend/base.html.twig' %}
{% block title %}Authentification{% endblock %}
{% block body %}
<div class="row justify-content-md-center mt-4">
<div class="col-12 col-lg-8 mt-5 mt-lg-0">
<div class="card">
<div class="card-header text-center mt-3">
<h2>Bienvenue sur votre espace FFCB</h2>
</div>
<div class="card-body">
<form method="post">
{% if error %}
<div class="alert alert-danger">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
{% endif %}
{% include 'frontend/partials/_flashes.html.twig' %}
<div class="row mb-5">
<div class="col-10 mx-auto">
<label class="form-label required" for="inputEmail">Email</label>
<input type="email" value="{{ last_username }}" name="email" id="inputEmail" class="form-control mb-4" autocomplete="off" required autofocus>
{#
<label class="form-label required" for="inputPassword">Mot de passe</label>
<input type="password" name="password" id="inputPassword" class="form-control mb-4" autocomplete="off" required>
#}
<div class="mb-3">
<label for="inputPassword" class="form-label required">Mot de passe</label>
<div class="input-group">
<input type="password" name="password" id="inputPassword" class="form-control" autocomplete="current-password" required>
<span class="input-group-text">
<a hre="#" data-controller="password-see"><i class="fas fa-eye"></i></a>
</span>
</div>
</div>
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
<div class="row mb-4">
<div class="col-6">
<div class="checkbox">
<label class="form-label">
<input type="checkbox" name="_remember_me"> Se souvenir de moi
</label>
</div>
</div>
<div class="col-6 text-end">
<a href="{{ path('app_forgot_password_request') }}">
Mot de passe oublié ?
</a>
</div>
</div>
<div class="text-end">
<button class="btn btn-primary">Connexion</button>
</div>
</div>
</div>
{# <hr>#}
{# <div class="text-center mt-4">#}
{# <h3 class="mb-3">Créer mon compte</h3>#}
{# <div class="mb-3">Vous pouvez faire votre demande de compte en cliquant sur le lien suivant</div>#}
{# <div class="text-center">#}
{# <a href="{{ path('customer_signup') }}" class="btn btn-lg btn-primary">#}
{# Demander un compte#}
{# </a>#}
{# </div>#}
{# </div>#}
</form>
</div>
</div>
</div>
</div>
{% endblock %}