<!DOCTYPE html>
<html lang="es">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Sistema Expirado - Transporte Militar</title>
    <link rel="stylesheet" href="/static/assets/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css">
    <style>
        .expired-card {
            max-width: 600px;
            margin: 2rem auto;
            box-shadow: 0 0 20px rgba(0,0,0,0.3);
            border: none;
            border-radius: 15px;
            overflow: hidden;
        }
        
        .warning-icon {
            font-size: 5rem;
            animation: pulse 1.5s infinite;
            color: #dc3545;
        }
        
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }
        
        .gradient-bg {
            background: linear-gradient(135deg, #dc3545 0%, #a71d2a 100%);
        }
    </style>
</head>
<body class="gradient-bg vh-100">
    <div class="d-flex align-items-center justify-content-center min-vh-100">
        <div class="expired-card">
            <div class="card-header bg-dark text-white py-4">
                <div class="d-flex align-items-center justify-content-center gap-3">
                    <i class="bi bi-shield-lock-fill"></i>
                    <h1 class="mb-0 fw-bold">SISTEMA BLOQUEADO</h1>
                </div>
            </div>
            
            <div class="card-body bg-light py-5 px-4">
                <div class="text-center mb-4">
                    <i class="bi bi-exclamation-octagon-fill warning-icon"></i>
                </div>
                
                <div class="alert alert-danger border-2 fw-bold">
                    <div class="d-flex gap-3 align-items-center justify-content-center">
                        <i class="bi bi-calendar-x-fill"></i>
                        <span>LICENCIA EXPIRADA</span>
                    </div>
                </div>
                
                <div class="mb-4">
                    <p class="lead text-center text-dark mb-3">
                        <i class="bi bi-info-circle-fill me-2"></i>
                        El sistema ha superado la fecha límite de uso autorizado.
                    </p>
                    
                    <div class="alert alert-warning d-inline-block">
                        <div class="d-flex align-items-center gap-2">
                            <i class="bi bi-clock-history"></i>
                            <span class="fw-bold">
                                Fecha de expiración: 
                                <span class="text-danger">{{ expiration_date|date:"d/m/Y" }}</span>
                            </span>
                        </div>
                    </div>
                </div>
                
                <div class="text-center mt-4">
                    <p class="text-muted small mb-3">
                        <i class="bi bi-building-gear me-2"></i>
                        Para reactivar el sistema, contacte al Grupo de Trabajo de Ingenieria y Desarrollo.
                    </p>
                    
                    <a href="{% url 'login' %}" class="btn btn-danger btn-lg px-5">
                        <i class="bi bi-box-arrow-left me-2"></i>
                        Cerrar Sesión
                    </a>
                </div>
            </div>
            
            <div class="card-footer bg-dark text-white-50 text-center py-3 small">
                <i class="bi bi-c-circle"></i> 2025 Dirección de Tecnologia de la Información y las Comunicaciones
            </div>
        </div>
    </div>
</body>
</html>