feat: admin panel login, layout, and styles

Add the admin CRM panel foundation including:
- Login/logout authentication flow with CSRF protection
- Sidebar layout with navigation for all CRM modules
- Comprehensive admin.css (1680+ lines) with components for
  cards, tables, badges, forms, buttons, alerts, modals,
  pagination, search, responsive breakpoints, and print styles
- admin.js with sidebar toggle, confirm dialogs, auto-dismiss
  alerts, and table search filtering

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Gestoría LP
2026-03-02 00:19:09 +00:00
parent 0ef344b67a
commit fbf1b31dc0
6 changed files with 1887 additions and 0 deletions

5
admin/logout.php Normal file
View File

@@ -0,0 +1,5 @@
<?php
require_once __DIR__ . '/../includes/auth.php';
authLogout();
header('Location: login.php');
exit;