<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>Login</title>
		<script
			src="https://kit.fontawesome.com/1d71f92e0a.js"
			crossorigin="anonymous"
		></script>
		<!-- Bootstrap CSS -->
		<link
			href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css"
			rel="stylesheet"
			integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1"
			crossorigin="anonymous"
		/>
		{% load static %}
		<link rel="stylesheet" href="{% static 'css/navbar.css' %}" />
	</head>
	<body>
		{% load i18n %} 
    {% include "navbar.html" %} 
    {% load crispy_forms_tags %} 
    {% block content %}
		<div class="row justify-content-center">
			<div class="col-md-6 col-sm-12">
				<h1 class="text-center pt-5">{% trans "Login Page" %}</h1>

				<p class="text-center pt-2">
					{% blocktranslate %}If you have not created an account yet, then please
					{% endblocktranslate %}<a href="{% url 'users:register' %}">register</a>{% blocktranslate %} first.{% endblocktranslate %}
				</p>
			</div>
		</div>

		<div class="row justify-content-center">
			<div class="col-md-6 col-sm-12">
				<form class="site-form" method="POST" action="{% url 'users:login' %}">
					{% csrf_token %} 
					{{ form|crispy }}
					<div class="d-grid gap-2">
						<button class="mt-3 btn btn-primary primaryAction" type="submit">
							{% trans "Sign In" %}
						</button>
					</div>
				</form>
			</div>
		</div>

		{% endblock %}
	</body>
</html>
