{% extends 'basic.html.twig' %}
{% block subtitle %}- {{ 'Login'|trans }}{% endblock %}
{% block body %}
<div class="row justify-content-center my-auto">
<div class="col-md-8 col-lg-6 col-xl-4">
<div class="text-center py-5">
<div class="mb-4 mb-md-5">
<a href="index.html" class="d-block auth-logo">
<img src="{{ asset('/assets/images/logo.png') }}" />
</a>
</div>
<div class="mb-4">
<h5>{{ 'app.welcome'|trans }}!</h5>
</div>
<form action="{{ path('app_login') }}" method="post">
{% if error %}
<div>{{ error.messageKey|trans(error.messageData, 'security') }}</div>
{% endif %}
<div class="form-floating form-floating-custom mb-3">
<input type="email" class="form-control" id="input-username" placeholder="{{ 'app.please_enter'|trans({'%subject%': 'app.username'|trans}) }}" name="_username" value="{{ last_username }}">
<label for="input-username">{{ 'app.username'|trans }}</label>
<div class="form-floating-icon">
<i class="uil uil-users-alt"></i>
</div>
</div>
<div class="form-floating form-floating-custom mb-3">
<input type="password" class="form-control" id="input-password" placeholder="{{ 'app.please_enter'|trans({'%subject%': 'app.password'|trans}) }}" name="_password">
<label for="input-password">{{ 'app.password'|trans }}</label>
<div class="form-floating-icon">
<i class="uil uil-padlock"></i>
</div>
</div>
<div class="form-check form-check-info font-size-16">
<input class="form-check-input" type="checkbox" id="remember-check">
<label class="form-check-label font-size-14" for="remember-check">
{{ 'app.remember_me'|trans }}
</label>
</div>
<div class="mt-3">
<button class="btn btn-success w-100" type="submit">{{ 'app.login'|trans|capitalize }}</button>
</div>
<div class="mt-4">
<a href="{{ path('app_forgot_password_request') }}" class="text-success fw-medium text-decoration-underline">{{ 'app.forgot.password'|trans }}</a>
</div>
</form><!-- end form -->
{# <div class="mt-5 text-center text-muted">
<p>{{ 'app.no_account'|trans({'%app_name%': 'app.app_name'|trans}) }}?<br>
<a href="{{ path('app_register') }}" class="text-success fw-medium text-decoration-underline"> {{ 'app.register_now'|trans }}! </a></p>
</div> #}
</div>
</div>
</div>
{% endblock %}