{% extends 'base_login.html.twig' %}
{% block content %}
<div class="card-body login-card-body">
<p class="login-box-msg">Faça o seu login</p>
<form action="{{ path('app_login') }}" method="post">
{% if error %}
<div class="alert alert-danger">
{{ error.messageKey|trans(error.messageData, 'security') }}
</div>
{% else %}
{% for message in app.flashes('danger') %}
<div class="alert alert-danger">
{{ message|raw }}
</div>
{% endfor %}
{% endif %}
{% for message in app.flashes('success') %}
<div class="alert alert-success">
{{ message|raw }}
</div>
{% endfor %}
<div class="input-group mb-3">
<input type="text" id="username" name="username" class="form-control" placeholder="E-mail">
<div class="input-group-append">
<div class="input-group-text">
<span class="fas fa-envelope"></span>
</div>
</div>
</div>
<div class="input-group mb-3">
<input type="password" id="password" name="password" class="form-control" placeholder="Senha">
<div class="input-group-append">
<div class="input-group-text">
<span class="fas fa-lock"></span>
</div>
</div>
</div>
<div class="row">
<div class="col-8">
<div class="icheck-primary">
<input type="checkbox" id="remember">
<label for="remember">
Lembrar-me
</label>
</div>
</div>
<!-- /.col -->
<div class="col-4">
<input type="hidden" name="_target_path" value="{{ app.request.get('redirect_to') }}"/>
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}"/>
<button type="submit" class="btn btn-primary btn-block">Entrar</button>
</div>
<!-- /.col -->
</div>
</form>
<p class="mb-1">
<a href="{{ path('forgot_password') }}">Esqueci a senha</a>
</p>
</div>
{% endblock %}