diff --git a/app/templates/auth/login.html b/app/templates/auth/login.html index b1140e6..7ddf32f 100644 --- a/app/templates/auth/login.html +++ b/app/templates/auth/login.html @@ -2,52 +2,118 @@ {% block title %}Login - Janitorial QC{% endblock %} -{% block content %} -
-
-
-
-

Janitorial QC

-

Quality Control System

-
-
-
- {{ form.hidden_tag() }} - -
- {{ form.username.label(class="form-label") }} - {{ form.username(class="form-control form-control-lg", placeholder="Enter username") }} - {% if form.username.errors %} -
- {% for error in form.username.errors %}{{ error }}{% endfor %} -
- {% endif %} -
- -
- {{ form.password.label(class="form-label") }} - {{ form.password(class="form-control form-control-lg", placeholder="Enter password") }} - {% if form.password.errors %} -
- {% for error in form.password.errors %}{{ error }}{% endfor %} -
- {% endif %} -
+{% block extra_css %} + +{% endblock %} + +{% block content %} +{# Add .login-page to via a small inline script — Jinja has no direct + access to the tag in base.html, so we set the class from JS on + DOMContentLoaded before first paint where possible, and also synchronously. #} + + +
+ +{# Remove .login-page when navigating away (SPA-style guard) #} + {% endblock %} \ No newline at end of file