{% extends "polls/base.html" %}
{% block content %}
{% load socialaccount %}
    {% load crispy_forms_tags %}

    <!--Login-->
    <div class="py-5">
        <h1>Login</h1> {{slogan}}
        <form method="POST">
            {% csrf_token %}
            {{ login_form|crispy }}
            <button class="btn btn-primary" type="submit">Login</button>
        </form>
        <p class="text-center">Don't have an account? <a href="{% url 'polls:register' %}">Create an account</a>.</p>
    </div>
    <img src="https://developers.google.com/identity/images/g-logo.png"  alt="Google Icon">
   <a href="{% provider_login_url 'google' %}?next=/">
        Login with Google
    </a>
{% endblock %}