<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
        <link rel="shortcut icon" type="image/ico" href="{{ asset('build/images/core/favicon.png') }}"/>

        <title>Netnexo</title>

        <link rel="stylesheet" href="{{ asset('build/css/d.bootstrap.min.css') }}">
        <link rel="stylesheet" href="{{ asset('build/css/login.css') }}">
    </head>

    <body class="text-center">
        <div class="container">
     
        <form class="form-signin" method="post" action="{{ path('login_check') }}">
            <a href="{{ path('website_index') }}">
                <img class="mb-4" src="{{ asset('build/images/logos/netnexo-sm.png') }}" alt="">
            </a>

            <h1 class="h3 mb-3 font-weight-normal">Iniciar Sesi&oacute;n</h1>

            {% for label, messages in app.flashes %}
                {% for message in messages %}
                    <div class="flash-alerta alert alert-{{ label }}" role="alert">
                        {{ message }}
                    </div>
                {% endfor %}
            {% endfor %}

            <div class="row text-left">
                <div class="col-md-12 mb-3">
                    <label for="username" class="sr-only">Usuario</label>
                    <input type="text" name="_username" id="username" value="{{ lastUsername }}" class="form-control" placeholder="Usuario" required autofocus>
                </div>
                <div class="col-md-12">
                    <label for="password" class="sr-only">Contrase&ntilde;a</label>
                    <input type="password" id="password" name="_password" class="form-control" placeholder="Contrase&ntilde;a" required>
                </div>
            </div>

            <div class="text-left checkbox mb-3">
                <label>
                    <input type="checkbox" name="_remember_me" value="">&nbsp;Recuerdame
                </label>
                <label>
                    <a href="{{ path('usuario_registrar') }}">¿No tienes cuenta? Registrate</a>
                </label>
                <label>
                    <a href="{{ path('usuario_reiniciar') }}">¿Olvidaste tu contraseña?</a>
                </label>
            </div>

            <!-- Comentado para redireccionar a la ruta solicitada /-->
            <!--input type="hidden" name="_target_path" value="/admin" /-->

            <button class="btn btn-lg btn-primary btn-block" type="submit">Ingresar</button>
              <p class="mt-5 mb-3 text-muted">Netnexo</p>
        </form>

        </div>


    </body>
</html>