{% extends 'seguridad_base.html.twig' %}
{% block body %}
<div class="parent">
<div class="grid-main">
<div class="grid-slider"></div>
<div class="grid-login">
<aside class="login_area">
<img src="{{ asset('img/logo_admin.png') }}" title="HiMed Admin" alt="HiMed Admin"/>
<h2>Iniciar sesión</h2>
{% for label, messages in app.flashes %}
{% for message in messages %}
<div class="alert alert-{{ label }}">
<span class="closebtn" onclick="this.parentElement.style.display='none';">×</span>
<h1>{{ message }}</h1>
</div>
{% endfor %}
{% endfor %}
<form method="post" name="login">
<label for="User">Nombre de usuario</label>
<input type="text" value="{{ last_username }}" id="User" name="User">
<label for="Password">Contraseña</label>
<input type="password" id="Password" name="Password">
{% if error %}
<div class="alerta-seguridad">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
{% endif %}
<input type="hidden" name="_csrf_token"
value="{{ csrf_token('authenticate') }}"
>
<button type="submit" value="Inicio de sesión"><span>Ingresar</span></button>
<a href="{{ path('app_forgot_password_request') }}" title="Recuperar Cuenta">Recuperar Cuenta</a>
</form>
</aside>
</div>
</div>
</div>
{% endblock %}