{% extends "base.htm" %}

{% block main %}

<h1>{{ _("Sign In") }}</h1>

<p>{{ _('If you have not created an account yet, then please <a href="%(signup_url)s">sign up</a> first.', signup_url=signup_url) }}</p>

<card-default>
    <card-header>
        <card-title>{{ page_context.get_view_title() }}</card-title>
    </card-header>
    <card-body>
        <form role="form" class="login" method="POST" action="{{ tpl.url('account_login') }}">
            {{ render_form(request, 'body', form) }}
            {% if redirect_field_value %}
            <input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}" />
            {% endif %}
            <a class="button secondaryAction" href="{{ tpl.url('account_reset_password') }}">{{ _("Forgot Password?") }}</a>
            <button class="btn btn-primary" type="submit">{{ _("Sign In") }}</button>
        </form>
    </card-body>
</card-default>

{% endblock main %}
