{% extends 'press_site/layout/main.html.twig' %}
{% block title %}Sign-In{% endblock %}
{% block header %}{% endblock %}
{% block content %}
<div class="sign-in__background-wrapper">
<header>
{% include 'press_site/partials/navbar.html.twig' with { hide_menu: true } %}
</header>
<main>
<div class="sign-in__wrapper">
<div class="sign-in__container-col">
<h1 class="sign-in-title__{{ app.request.locale }}">{{ 'content.landing_page.title' | trans({}, 'PressSite') | raw }}</h1>
<p>{{ 'content.landing_page.sub_title' | trans({}, 'PressSite') }}</p>
{% if error %}
<div class="error__container">
<div class="auth-error">{{ error.messageKey }}</div>
</div>
{% endif %}
<form method="post">
<input class="input__username" type="text" value="{{ last_user }}" name="username" placeholder="Username">
<input class="input__password" type="password" name="password" placeholder="Password">
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
<a href="{{ path('press_site.actions.account.forgotten_password', {_locale: app.request.locale}) }}">
{{ 'meta.forgot_password' | trans({}, 'PressSite') }}
</a>
<button type="submit" class="sign-in__btn link__box">
{{ 'content.landing_page.sign_in' | trans({}, 'PressSite') }}
</button>
</form>
</div>
</div>
</main>
</div>
{% endblock %}