<form class="formValidate" method="post" action="{% url 'users:login' %}" novalidate="novalidate">
    <div class="form login-form">
        <div class="login-form__title">
            Zaloguj się
        </div>
        <div class="login-form__description">
            Nie masz jeszcze konta? <a href="{% url 'users:register' %}">Zarejestruj się</a>
        </div>
        <div class="login-form__description">
            Zapomniałeś hasła? <a href="{% url 'users:password-reset' %}">Przypomnij hasło</a>
        </div>
        {% csrf_token %}
        <div class="form__input {% if form.username.errors or form.non_field_errors %}has-error{% elif form.cleaned_data.username %}no-error{% endif %}">
            {{ form.username }}
            <span class="form__input__bar"></span>
            {% include 'users/modules/_form_field_errors.html' with errors=form.username.errors %}
            <label>{{ form.username.label }}</label>
        </div>
        <div class="form__input {% if form.password.errors or form.non_field_errors %}has-error{% endif %}">
            {{ form.password }}
            <span class="form__input__bar"></span>
            {% include 'users/modules/_form_field_errors.html' with errors=form.password.errors %}
            {% include 'users/modules/_form_field_errors.html' with errors=form.non_field_errors %}
            <label>{{ form.password.label }}</label>
        </div>
        <div class="form__submit--login">
            <button type="submit" class="button button__login-single button__login-single--blue">Zaloguj</button>
        </div>
    </div>
</form>
