<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Error</title>
    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap" rel="stylesheet">
    <style>
        body {
            font-family: 'Poppins', sans-serif;
            background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            color: #333;
        }
        .container {
            background-color: white;
            padding: 50px;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            text-align: center;
            max-width: 500px;
            width: 100%;
            position: relative;
            overflow: hidden;
        }
        .container::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
            opacity: 0.1;
            transform: rotate(45deg);
            z-index: -1;
        }
        h1 {
            color: #1976d2;
            margin-bottom: 20px;
            font-size: 2.5em;
            font-weight: 600;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }
        .icon {
            font-size: 3em;
            color: #ff9800;
            margin-bottom: 20px;
        }
        p {
            color: #424242;
            font-size: 1.2em;
            margin-bottom: 15px;
            line-height: 1.6;
        }
        .error-details {
            color: #d32f2f;
            font-size: 1em;
            margin-top: 20px;
            padding: 10px;
            background-color: #ffebee;
            border-left: 4px solid #d32f2f;
            border-radius: 4px;
        }
        .highlight {
            color: #2196f3;
            font-weight: 600;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="icon">⚠️</div>
        <h1>Oops! Something went wrong.</h1>
        <p>We're sorry, but an error occurred. Please try again later or contact support if the problem persists.</p>
        <p class="error-details">Error: {{ error or "An unknown error occurred." }}</p>
    </div>
</body>
</html>