{% extends 'base.html.twig' %}
{% block title %}Se Connecter !{% endblock %}
{% block main %}
<div class="d-flex flex-column flex-root">
<!--begin::Authentication - Sign-in -->
<div class="d-flex flex-column flex-column-fluid bgi-position-y-bottom position-x-center bgi-no-repeat bgi-size-contain bgi-attachment-fixed"
style="background-image: url({{ asset('assets/theme/media/illustrations/sketchy-1/14.png') }}">
<!--begin::Content-->
<div class="d-flex flex-center flex-column flex-column-fluid p-10 pb-lg-20">
<!--begin::Logo-->
<a href="{{ path('dashboard') }}" class="mb-12">
<img alt="Logo" src="{{ asset('logos/logo.png') }}" class="h-40px"/>
</a>
<!--end::Logo-->
<!--begin::Wrapper-->
<div class="w-lg-500px bg-body rounded shadow-sm p-10 p-lg-15 mx-auto">
<!--begin::Form-->
<form class="form w-100" novalidate="novalidate" id="kt_sign_in_form" method="post">
<!--begin::Heading-->
<div class="text-center mb-10">
<!--begin::Title-->
<h1 class="text-dark mb-3">Se Connecter</h1>
{% for label, messages in app.flashes %}
<div class="alert alert-{{ label }}">
{% for message in messages %}
<p>{{ message | raw }}</p>
{% endfor %}
</div>
{% endfor %}
{% if error %}
<div class="alert alert-danger">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
{% endif %}
<!--end::Title-->
</div>
<!--begin::Heading-->
<!--begin::Input group-->
<div class="fv-row mb-10">
<!--begin::Label-->
<label class="form-label fs-6 fw-bolder text-dark">Email</label>
<!--end::Label-->
<!--begin::Input-->
<input class="form-control form-control-lg form-control-solid" type="text" name="email"
autocomplete="off"/>
<!--end::Input-->
</div>
<!--end::Input group-->
<!--begin::Input group-->
<div class="fv-row mb-10">
<!--begin::Wrapper-->
<div class="d-flex flex-stack mb-2">
<!--begin::Label-->
<label class="form-label fw-bolder text-dark fs-6 mb-0">Mot de passe</label>
<!--end::Label-->
<!--begin::Link-->
<a href="{{ path('app_forgot_password_request') }}" class="link-primary fs-6 fw-bolder">Mot
de
passe oublié ?</a>
<!--end::Link-->
</div>
<!--end::Wrapper-->
<!--begin::Input-->
<input class="form-control form-control-lg form-control-solid" type="password"
name="password" autocomplete="off"/>
<!--end::Input-->
</div>
<!--end::Input group-->
<!--begin::Actions-->
<div class="text-center">
<!--begin::Submit button-->
<button type="submit" id="kt_sign_in_submit" class="btn btn-lg btn-primary w-100 mb-5">
<span class="indicator-label">Continue</span>
<span class="indicator-progress">Please wait...
<span class="spinner-border spinner-border-sm align-middle ms-2"></span></span>
</button>
<!--end::Submit button-->
<!--begin::Separator-->
<div class="text-center text-muted text-uppercase fw-bolder mb-5">Ou</div>
<!--end::Separator-->
<!--begin::Google link-->
<a href="{{ path('connect_google_start') }}" type="button"
class="btn btn-light-primary font-weight-bolder px-8 py-4 my-3 font-size-lg">
<span class="svg-icon svg-icon-md">
{{ img_icon(asset('assets/theme/media/svg/brand-logos/google-icon.svg'), 'google', 20, 20) }}
</span>Se connecter avec Google
</a>
{# <a href="#" class="btn btn-flex flex-center btn-light btn-lg w-100 mb-5">
<img alt="Logo" src="assets/media/svg/brand-logos/google-icon.svg" class="h-20px me-3" />Continue with Google</a> #}
<!--end::Google link-->
</div>
<!--end::Actions-->
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
</form>
<!--end::Form-->
</div>
<!--end::Wrapper-->
</div>
<!--end::Content-->
<!--begin::Footer-->
<div class="d-flex flex-center flex-column-auto p-10">
<!--begin::Links-->
<div class="d-flex align-items-center fw-bold fs-6">
<div class="text-dark-50 font-size-lg font-weight-bolder mr-10">
<span class="mr-1">2022 ©</span>
<a href="https://smartapps.ma" target="_blank" class="text-dark-75 text-hover-primary">Digital
Smart Apps</a>
</div>
</div>
<!--end::Links-->
</div>
<!--end::Footer-->
</div>
<!--end::Authentication - Sign-in-->
</div>
{% endblock %}