{% extends 'backend/base.html.twig' %}
{% block title %}Authentification{% endblock %}
{% block content %}
<div class="row justify-content-md-center">
<div class="col-12 col-lg-8 mt-5 mt-lg-0">
<div class="card card-login card-rounded">
<div class="card-body">
<div class="mt-5 mb-5 text-center">
<img class="login-logo" src="{{ asset('build/backend/images/ffcb_logo.jpg', 'backend') }}" alt="Logo FFCB">
</div>
<div>
<form class="m-form-login" method="post">
{% if error %}
<div class="alert alert-danger">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
{% endif %}
{% include 'backend/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>
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
<div class="checkbox mb-4">
<label class="form-label">
<input type="checkbox" name="_remember_me"> Se souvenir de moi
</label>
</div>
<div class="text-end">
<button class="btn btn-primary">Connexion</button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
{% endblock %}