{% extends "base.html" %} {% block title %}Login - Janitorial QC{% endblock %} {% 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. #}

Janitorial QC

Quality Control System

{{ form.hidden_tag() }}
{{ form.username.label(class="form-label fw-semibold") }} {{ form.username(class="form-control form-control-lg", placeholder="Enter username", autofocus=true) }} {% if form.username.errors %}
{% for error in form.username.errors %}{{ error }}{% endfor %}
{% endif %}
{{ form.password.label(class="form-label fw-semibold") }} {{ form.password(class="form-control form-control-lg", placeholder="Enter password") }} {% if form.password.errors %}
{% for error in form.password.errors %}{{ error }}{% endfor %}
{% endif %}
{{ form.remember_me(class="form-check-input") }} {{ form.remember_me.label(class="form-check-label text-muted") }}
{# Remove .login-page when navigating away (SPA-style guard) #} {% endblock %}