{% extends "layouts/auth.html" %} {% import 'components/macros.html' as ui %} {% block title %}Login - {{ login_brand_name }}{% endblock %} {% block head_extra %} {% endblock %} {% block auth_content %} {{ ui.page_header(login_brand_name, 'Choose the sign-in area that matches your role and step into a brighter, more polished workspace.') }}
{{ ui.button('Admin Dashboard', '/admin', 'secondary') }} {{ ui.button('Help Center', '/help-center', 'secondary') }}
{% if error %} {{ ui.alert(error, 'error', 'Login error') }} {% endif %}
{% call ui.card('Admin Portal', 'Use this panel for management, analytics, product control, reports, and system setup.', 'login-card') %}

Admin Sign In

{{ ui.alert('New admin? Register your shop account here.', 'info') }}

Register Shop + Admin

{{ ui.form_field('admin-shop-code', 'Shop Code', placeholder='Shop code', required=True) }} {{ ui.form_field('admin-username', 'Username', placeholder='Admin username', required=True) }} {{ ui.form_field('admin-password', 'Password', input_type='password', placeholder='Admin password', required=True) }} {{ ui.checkbox('remember_me', 'Remember this device') }}
{{ ui.button('Enter Admin', kind='primary', button_type='submit') }}

Forgot password?

Server Access

Developer-only entry for server administration.

{{ ui.form_field('server_key', 'Developer Key', input_type='password', placeholder='Enter server key', required=True) }}
{{ ui.button('Enter Server Admin', kind='secondary', button_type='submit') }}
{% endcall %} {% call ui.card('Cashier Portal', 'Use this panel for daily checkout, scanning, customer service, and fast POS sales work.', 'login-card') %}

Cashier Sign In

{{ ui.alert('Shop owners: Add cashiers to your shop from the admin dashboard.', 'info') }}
{{ ui.form_field('cashier-shop-code', 'Shop Code', placeholder='Shop code', required=True) }} {{ ui.form_field('cashier-username', 'Username', placeholder='Cashier username', required=True) }} {{ ui.form_field('cashier-password', 'Password', input_type='password', placeholder='Cashier password', required=True) }} {{ ui.checkbox('remember_me', 'Remember this device') }}
{{ ui.button('Enter Cashier', kind='primary', button_type='submit') }}

Forgot password?

{% endcall %}
{{ ui.empty_state( 'Need a fresh account?', 'Register here to create an enterprise account and connect it to your shop.', 'Register', '/register' ) }}

Terms and Conditions

{% endblock %}