<!DOCTYPE html >

<%@ page language="java" contentType="text/html; charset=iso-8859-1"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="/WEB-INF/struts-tags.tld" prefix="s"%>
<%@ taglib uri="http://www.springframework.org/security/tags" prefix="sec"%>

<c:set var="contextPath" value="${pageContext.request.contextPath}"	scope="request" />

<html>
<head>
<title>Error</title>

<meta http-equiv="X-UA-Compatible" content="IE=EDGE">

<%@include file="/jsp/common/scripts.jsp"%>
<%@include file="/jsp/common/styles.jsp"%>
    <style>
        body {
            font-family: Arial, sans-serif;
            text-align: center;
            padding: 50px;
            background-color: #f8f9fa;
        }
        .error-container {
            background-color: #fff;
            border: 1px solid #dee2e6;
            border-radius: 5px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            padding: 20px;
            display: inline-block;
        }
        .error-message {
            color: #dc3545;
            font-size: 24px;
            margin-bottom: 20px;
        }
        .error-description {
            color: #6c757d;
            font-size: 18px;
        }
         .back-button {
            background-color: red;
            color: white;
            border: none;
            padding: 10px 20px;
            text-align: center;
            text-decoration: none;
            display: inline-block;
            font-size: 16px;
            margin: 4px 2px;
            cursor: pointer;
            border-radius: 4px;
        }

        .back-button:hover {
            background-color: darkred;
        }
        .container {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 10vh;
            text-align: center;
        }
    </style>
</head>
<body>
    <div class="error-container">
        <div class="error-message">Ocurrió un error.</div>
        <div class="error-description">Por favor, intente nuevamente más tarde.</div>
    </div>
    <div class="container">
        <button class="back-button" onclick="goBack()">Regresar</button>
    </div>

    <script>
        function goBack() {
            window.history.back();
        }
    </script>
</body>
</html>
