140 lines
6.7 KiB
HTML
140 lines
6.7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="es" data-bs-theme="dark">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Consola de Emergencia - Edu-Space Admin</title>
|
|
|
|
<!-- Favicon -->
|
|
<link rel="icon" type="image/png" href="/img/favicon.png">
|
|
|
|
<!-- Script Anti-Flicker para Modo Claro / Oscuro -->
|
|
<script>
|
|
(function() {
|
|
const storedTheme = localStorage.getItem('theme');
|
|
const theme = storedTheme || (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light');
|
|
document.documentElement.setAttribute('data-bs-theme', theme);
|
|
})();
|
|
</script>
|
|
|
|
<!-- Bootstrap 5 CSS -->
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css" rel="stylesheet">
|
|
<!-- Design System Theme -->
|
|
<link href="/css/theme.css" rel="stylesheet">
|
|
<style>
|
|
.admin-badge {
|
|
background: rgba(220, 53, 69, 0.15);
|
|
color: #dc3545;
|
|
border: 1px solid rgba(220, 53, 69, 0.3);
|
|
font-size: 0.72rem;
|
|
letter-spacing: 0.8px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
}
|
|
[data-bs-theme="dark"] .admin-badge {
|
|
background: rgba(248, 113, 113, 0.15);
|
|
color: #f87171;
|
|
border-color: rgba(248, 113, 113, 0.3);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="auth-wrapper">
|
|
<div class="auth-card">
|
|
<!-- Header con Controles Superiores & Logo Oficial -->
|
|
<div class="auth-header">
|
|
<div class="auth-controls">
|
|
<button class="theme-toggle-btn" type="button" aria-label="Cambiar tema" title="Modo Claro/Oscuro">
|
|
<i class="bi bi-moon-stars-fill"></i>
|
|
</button>
|
|
</div>
|
|
|
|
<img src="/img/logo_unicaba.png" alt="UniCABA" class="auth-logo">
|
|
<div class="mt-2 mb-1">
|
|
<span class="badge admin-badge px-2 py-1 rounded-pill">
|
|
<i class="bi bi-shield-lock-fill me-1"></i>Consola Administrativa
|
|
</span>
|
|
</div>
|
|
<h4 class="fw-bold mb-1">Edu-Space Admin</h4>
|
|
<p class="text-muted small mb-0">Acceso de Contingencia y Recuperación</p>
|
|
</div>
|
|
|
|
<div class="px-4 pb-4 pt-2">
|
|
<!-- Flash Messages -->
|
|
{% if error %}
|
|
<div class="alert alert-danger alert-dismissible fade show rounded-3 py-2 small" role="alert">
|
|
<i class="bi bi-exclamation-triangle-fill me-1"></i> {{ error }}
|
|
<button type="button" class="btn-close py-2" data-bs-dismiss="alert"></button>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<!-- Formulario de Autenticación de Emergencia ADMIN -->
|
|
<form action="/adm/login" method="POST" id="adminLoginForm" novalidate>
|
|
<div class="mb-3">
|
|
<label for="adminEmail" class="form-label small fw-semibold text-muted">Correo Administrador</label>
|
|
<div class="input-group">
|
|
<span class="input-group-text bg-body-tertiary border-end-0 text-muted">
|
|
<i class="bi bi-person-badge"></i>
|
|
</span>
|
|
<input type="email" class="form-control border-start-0 ps-0" id="adminEmail" name="email"
|
|
required placeholder="admin@unicaba.edu.ar" autofocus>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label for="adminPassword" class="form-label small fw-semibold text-muted">Contraseña Maestra</label>
|
|
<div class="input-group">
|
|
<span class="input-group-text bg-body-tertiary border-end-0 text-muted">
|
|
<i class="bi bi-key-fill"></i>
|
|
</span>
|
|
<input type="password" class="form-control border-start-0 border-end-0 ps-0" id="adminPassword" name="password"
|
|
required placeholder="Ingresa tu clave de emergencia">
|
|
<button class="btn btn-outline-secondary border-start-0 bg-body-tertiary text-muted" type="button" id="togglePasswordBtn" title="Mostrar/Ocultar contraseña">
|
|
<i class="bi bi-eye" id="togglePasswordIcon"></i>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="d-grid mb-3 mt-4">
|
|
<button type="submit" class="btn btn-danger btn-lg fw-semibold py-2">
|
|
<i class="bi bi-shield-check me-1"></i> Acceder a Consola
|
|
</button>
|
|
</div>
|
|
</form>
|
|
|
|
<div class="text-center mt-3">
|
|
<small class="text-muted d-inline-flex align-items-center" style="font-size: 0.73rem;">
|
|
<i class="bi bi-incognito text-danger me-1"></i>
|
|
Acceso restringido • Todos los intentos son registrados y auditados
|
|
</small>
|
|
<div class="mt-2">
|
|
<span class="badge bg-body-tertiary text-secondary border font-monospace" style="font-size: 0.68rem;">
|
|
<i class="bi bi-tag-fill me-1"></i>v{{ app_version or '3.8.5' }}
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
|
<script src="/js/theme-toggle.js"></script>
|
|
<script>
|
|
// Toggle password visibility
|
|
const toggleBtn = document.getElementById('togglePasswordBtn');
|
|
const passwordInput = document.getElementById('adminPassword');
|
|
const passwordIcon = document.getElementById('togglePasswordIcon');
|
|
|
|
if (toggleBtn && passwordInput && passwordIcon) {
|
|
toggleBtn.addEventListener('click', function() {
|
|
const type = passwordInput.getAttribute('type') === 'password' ? 'text' : 'password';
|
|
passwordInput.setAttribute('type', type);
|
|
passwordIcon.classList.toggle('bi-eye');
|
|
passwordIcon.classList.toggle('bi-eye-slash');
|
|
});
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|