{% extends 'security.html.twig' %}
{% block stylesheets %}
<link rel="stylesheet" href="{{ asset('assets/css/reset-password.css') }}">
{% endblock %}
{% block body %}
<div class="container test">
<div class="row justify-content-center align-items-center authentication authentication-basic h-100">
<div class="col-xxl-4 col-xl-5 col-lg-5 col-md-6 col-sm-8 col-12">
<div class="my-5 d-flex justify-content-center">
<a href="{{ path('app_login') }}">
<img src="{{ asset('assets/images/brand-logos/desktop-dark.png') }}" alt="logo"
class="desktop-logo">
</a>
</div>
<div class="card custom-card">
<div class="card-body p-5">
<p class="h4 fw-semibold mb-4 text-center">Se connecter</p>
{% if error %}
<div class="text-danger">
{{ error.message()|trans }}
</div>
{% endif %}
<form action="{{ path('app_login') }}" method="post">
<div class="row gy-3">
<div class="col-xl-12">
<label for="username" class="form-label text-default float-start">Nom
d'utilisateur</label>
<input type="text" class="form-control form-control-lg" id="username"
name="_username" value="{{ last_username }}" placeholder="nom@exemple.com" required>
</div>
<div class="col-xl-12 mb-2">
<label for="password" class="form-label text-default d-block float-start">Mot de
passe</label>
<div class="input-group mb-3">
<div class="input-group">
<input type="password" class="form-control form-control-lg" id="password"
name="_password" placeholder="Mot de passe" required>
<button class="btn btn-light" type="button"
onclick="createpassword('password',this)" id="button-addon2"><i
class="ri-eye-off-line align-middle"></i></button>
</div>
</div>
<a href="{{ path('app_forgot_password_request') }}"
class=" text-danger mt-4 text-end fs-14">Mot de passe oublié ?</a>
<div class="mt-3">
<div class="checkbox mb-2 d-flex">
<label class="fs-14">
<input type="checkbox" value="remember-me" name="_remember_me" checked>
Se souvenir de moi
</label>
</div>
</div>
</div>
<input type="hidden" name="_target_path" value="{{ path('home') }}"/>
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
<div class="col-xl-12 d-grid mt-2">
<button class="btn btn-lg btn-shiny" type="submit">Connexion</button>
</div>
</div>
</form>
<div class="mt-4 mb-4 position-relative d-flex justify-content-center" style=" margin: 50px 0 15px; text-align: center; border-top: 1px solid #e0e0e0;">
<b class="position-absolute bg-white px-2" style="bottom: -.6em">ou</b>
</div>
<div class="btn btn-lg btn-primary col-12 center-align mt-2">
<a class="py-2 text-white text-decoration-none" href="{{ path('connect_google') }}"
style="text-transform:none">
<div class="d-flex align-content-center justify-content-center">
<i class="bi bi-google mx-2"></i>
Se connecter avec Google
</div>
</a>
</div>
<p class="mt-3 mb-1 text-muted">© 2017–2022</p>
</div>
</div>
</div>
</div>
</div>
{% endblock %}
{% block javascripts %}
{% endblock %}