{% extends "member/Base.html" %}

{% load url from future %}
{% load i18n %}

{% block title %}{% trans "Log in" %}{% endblock %}

{% block body %}
   
        
    <form method="POST" action="{% url "account_login" %}" autocapitalize="off" {% if form.is_multipart %} enctype="multipart/form-data"{% endif %}>
        <legend>{% trans "Log in to an existing account" %}</legend>
        {% csrf_token %}
        {{ form }}
        {% if redirect_field_value %}
            <input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}" />
        {% endif %}
        <button type="submit">{% trans "Log in" %}</button>
        <a href="{% url "account_password_reset" %}">{% trans "Forgot your password?" %}</a>
    </form>
    {% if ACCOUNT_OPEN_SIGNUP %}

        {% trans "Don't have an account?" %}  <strong><a href="{% url 'account_signup' %}">{% trans "Sign up" %}</a></strong>

    {% endif %}
    
        
    
{% endblock %}
