{% extends "account/base_entrance.html" %} {% load static i18n %} {% load allauth account %} {% load phoxtail_core_tags %} {% block head_title %} {% trans "Sign In" %} {% endblock head_title %} {% block extra_head %} {{ block.super }} {% endblock %} {% block body %} {% if messages %} {% include "account/messages.html" %} {% endif %}
{% include "allauth/components/logo.html" %}

{% trans "Login" %}

{% if not SOCIALACCOUNT_ONLY %}

{% setvar link %} {% endsetvar %} {% setvar end_link %} {% endsetvar %} {% blocktranslate %}If you have not created an account yet, then please {{ link }}sign up{{ end_link }} first.{% endblocktranslate %}

{% endif %}
{% url 'account_login' as login_url %}
{% csrf_token %} {% if form.non_field_errors %} {% for error in form.non_field_errors %}

{{ error }}

{% endfor %} {% endif %}
{{ form.login|add_class:"auth-input" }}
{% if form.login.errors %}
{% for error in form.login.errors %}

{{ error }}

{% endfor %}
{% endif %}
{{ form.password|add_class:"auth-input" }}
{% if form.password.errors %}
{% for error in form.password.errors %}

{{ error }}

{% endfor %}
{% endif %}
{{ redirect_field }}
{% include "allauth/components/submit_button.html" with text_key="Login" button_type="submit" %}
{% if LOGIN_BY_CODE_ENABLED or PASSKEY_LOGIN_ENABLED %}
{% if PASSKEY_LOGIN_ENABLED %} {% include "allauth/components/submit_button.html" with text_key="Sign in with a passkey" button_type="submit" form_id="mfa_login" button_id="passkey_login" %} {% endif %} {% if LOGIN_BY_CODE_ENABLED %} {% include "allauth/components/submit_button.html" with text_key="Send me a sign-in code" button_type="link" url=request_login_code_url %} {% endif %}
{% endif %} {% if SOCIALACCOUNT_ENABLED %}
{% include "socialaccount/snippets/login.html" with page_layout="entrance" %}
{% endif %}
{% endblock body %} {% block extra_body %} {{ block.super }} {% if PASSKEY_LOGIN_ENABLED %} {% include "mfa/webauthn/snippets/login_script.html" with button_id="passkey_login" %} {% endif %} {% endblock %}