<div class="login_page">
    {% extends 'base.html' %}
    {% block content %}
        <p>Log in using <strong>{{ provider.title }}</strong></p>

        <form method=post>
            <div class="login_form">
                {% for field in form %}
                    {% if field.widget.__class__.__name__ == 'HiddenInput' %}
                        {{ field() }}
                    {% else %}
                        <div class="login_form_field">
                            {{ field.label() }}
                        </div>
                        <div>
                            {{ field() }}
                            {% if field.errors %}
                                Errors: {{ field.errors|join(' / ') }}
                            {% endif %}
                        </div>
                    {% endif %}
                {% endfor %}
                <input type="submit" value="Login" class="btn btn-secondary login_button">
            </div>
        </form>
    {% endblock %}
</div>