{% extends 'auth_app\base.html' %}
{% load socialaccount %}

{% block title %}Login{% endblock %}

{% block content %}
<h2 class="mb-4">Login</h2>
<form method="post">
    {% csrf_token %}
    <div class="mb-3">
        <label for="username" class="form-label">Username</label>
        <input type="text" class="form-control" id="username" name="username" required>
    </div>
    <div class="mb-3">
        <label for="password" class="form-label">Password</label>
        <input type="password" class="form-control" id="password" name="password" required>
    </div>
    <button type="submit" class="btn btn-primary">Login</button>
</form>
<h3>Or login with</h3>
<a href="{% url 'provider_login_url' 'google' %}">Login with Google</a>
<a href="{% url 'provider_login_url' 'facebook' %}">Login with Facebook</a>

<div class="mt-3">
    <a href="{% url 'register_customer' %}">Register as Customer</a> |
    <a href="{% url 'register_admin' %}">Register as Admin</a> |
    <a href="{% url 'password_reset' %}">Forgot Password?</a>
</div>
{% endblock %}