{% extends "admin/base_login.html" %} {% load i18n static %} {% load form_filters %} {% block title %}{% if form.errors %}{% translate "Error:" %} {% endif %}{{ block.super }}{% endblock %} {% block extrastyle %} {{ block.super }} {{ form.media }} {% endblock %} {% block bodyclass %}login bg-gradient-to-tr from-blue-100/30 to-purple-100/30 min-h-screen flex items-center justify-center bg-cover bg-center{% endblock %} {% block content %}

{% translate "Admin Login" %}.

{% if form.errors and not form.non_field_errors %}

{% blocktranslate count counter=form.errors.items|length %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktranslate %}

{% endif %} {% if form.non_field_errors %} {% for error in form.non_field_errors %}

{{ error }}

{% endfor %} {% endif %} {% if user.is_authenticated %}

{% blocktranslate trimmed %} You are authenticated as {{ username }}, but are not authorized to access this page. Would you like to login to a different account? {% endblocktranslate %}

{% endif %}
{% csrf_token %}
{{ form.username|add_class:" w-full px-3 py-2 rounded-lg focus:outline-none text-white dark:text-black" }} {% if form.username.errors %}

{{ form.username.errors|join:", " }}

{% endif %}
{{ form.password|add_class:"w-full px-3 py-2 rounded-lg focus:outline-none bg-[#1c1c21e0] text-white dark:text-black" }} {% if form.password.errors %}

{{ form.password.errors|join:", " }}

{% endif %}
{% url 'admin_password_reset' as password_reset_url %} {% if password_reset_url %} {% endif %}
{% endblock %}