{% include 'headerlogin.html.twig' %}
<body>
<div class="container-scroller">
<div class="container-fluid page-body-wrapper full-page-wrapper">
<div class="content-wrapper d-flex align-items-center auth" style="background: linear-gradient(to right, #90caf9, #047edf 99%);">
<div class="row flex-grow">
<div class="col-lg-4 mx-auto" style="margin-right: 10%;">
<div class="auth-form-light text-left p-5" style="height : 100%; ">
<div class="brand-logo" style="margin-left : 24%;">
<img style="margin- : auto;" src="{{ asset('images/icones/mlc.png')}}">
</div>
{% if app.request.query.get("mail") is defined and app.request.query.get("mail") != null %}
<span style="font-weight : bold;" class="text-success">Inscription effectuée,</span> <br/>
connectez vous avec l'identifiant : <span style="font-weight : bold;" class="text-info">{{ app.request.query.get("mail") }} </span>
et le mot de passe choisi lors de l'inscription
{% endif %}
{% if app.request.query.get("doublon") is defined %}
<span style="font-weight : bold;" class="text-danger">{{app.request.query.get("doublon")}}</span> <br/>
{% endif %}
<h6 style="font-weight : bold;">Connexion</h6>
<form class="pt-3" method="post">
<div class="form-group">
{% if error %}
<div class="alert alert-danger">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
{% endif %}
{% if app.user %}
<div class="mb-3">
You are logged in as {{ app.user.username }}, <a href="{{ path('app_logout') }}">Logout</a>
</div>
{% endif %}
<input type="email" class="form-control form-control-lg" name="email" value="{{ last_username }}" placeholder="Email">
</div>
<div class="form-group">
<input type="password" class="form-control form-control-lg" name="password" placeholder="Mot de passe">
</div>
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
<button class="btn btn-block btn-gradient-info btn-lg font-weight-medium auth-form-btn" type="submit">
Connexion
</button>
<a href="{{path('inscription_province')}}" style="width : 100%;"class="btn btn-gradient-warning"> S'adhérer </a>
<div class="my-2 d-flex justify-content-between align-items-center">
<div class="form-check">
<label class="form-check-label text-muted">
<input type="checkbox" class="form-check-input"> </label>
</div>
<div style="">
</div>
</div>
</form>
<a href="{{path('membre_oublie_password')}}"> Mot de passe oublié </a>
</div>
</div>
</div>
</div>
<!-- content-wrapper ends -->
</div>
<!-- page-body-wrapper ends -->
</div>
{#
Uncomment this section and add a remember_me option below your firewall to activate remember me functionality.
See https://symfony.com/doc/current/security/remember_me.html
<div class="checkbox mb-3">
<label>
<input type="checkbox" name="_remember_me"> Remember me
</label>
</div>
#}