{# auth-form terminal override — reproduces the builtin's security-critical wiring: hardcoded HTMX endpoints /api/auth/login + /api/auth/register (target #auth-message), /forgot-password link, OAuth start URLs gated on context.site.*, and the exact Cap widget markup when captchaEnabled. Only the chrome is themed. #} {% if context.isPublicLoggedIn %}

Session active as {{ context.publicUsername }}

My Account
{% else %} {% set loginActive = "border-primary text-primary" %} {% set registerActive = "border-transparent text-muted-foreground" %} {% set loginHidden = "" %} {% set registerHidden = "hidden" %} {% if default_tab == "register" %}{% set loginActive = "border-transparent text-muted-foreground" %}{% set registerActive = "border-primary text-primary" %}{% set loginHidden = "hidden" %}{% set registerHidden = "" %}{% endif %} {% set tabbase = "flex-1 py-2 text-center terminal-mono text-sm font-medium uppercase tracking-wider border-b-2 transition-colors" %} {% macro captcha() %} {% endmacro %} {% macro social() %}{% if show_social != false and (context.site.google_oauth_client_id or context.site.facebook_app_id) %}

or
{% if context.site.google_oauth_client_id %}Continue with Google{% endif %} {% if context.site.facebook_app_id %}Continue with Facebook{% endif %}
{% endif %}{% endmacro %}
{% if captchaEnabled %}{{ captcha() }}{% endif %}

Forgot password?

{{ social() }}
{% if captchaEnabled %}{{ captcha() }}{% endif %}
{{ social() }}
{% endif %}