{% extends "base_short.html" %}
{% load i18n staticfiles bootstrap3 %}

{% block title %}
    <title>ungleich</title>
{% endblock %}


{% block content %}
    <div class="auth-container">
        <div class="auth-bg"></div>
        <div class="auth-center">
            <div class="auth-content">
                <div class="auth-box">
                    <h1 class="section-heading allcaps">{% trans "Log in" %}</h1>
                    {% include 'includes/_messages.html' %}
                    <form action="{% url 'index' %}" method="post" class="form" novalidated>
                        {% csrf_token %}
                        {% for field in form %}
                            {% bootstrap_field field show_label=False type='fields'%}
                        {% endfor %}
                        <p class="red">{{form.non_field_errors|striptags}}</p>
                        <div class="text-center">
                            <button type="submit" class="btn choice-btn btn-block">
                                {% trans "Log in" %}
                            </button>
                        </div>
                        <input type='hidden' name='next' value='{{request.GET.next}}'/>
                    </form>
                    <div class="auth-footer">
                        <div>
                            {% trans "Don't have an account yet ?" %}&nbsp;<a href="/register">{% trans "Sign up" %}</a>
                        </div>
                        <div>
                            or <a href="{% url 'reset_password' %}">{% trans "Forgot your password ?" %}</a><br>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
{% endblock %}
