<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Verification Failed</title>
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
    <link rel="stylesheet" href="css/design.css">
    <style>
        body {
            margin: 0;
            min-height: 100vh;
            background: linear-gradient(180deg, #f5f7fb 0%, #eef2f6 100%);
            color: #0f1724;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 24px;
        }
        .error-container {
            width: 100%; 
            background: rgba(255, 255, 255, 0.98);
            border-radius: 24px;
            padding: 36px 32px;
            box-shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
            border: 1px solid rgba(15, 23, 42, 0.08);
            text-align: center;
        }
        .error-icon {
            width: 84px;
            height: 84px;
            margin: 0 auto 22px;
            display: grid;
            place-items: center;
            border-radius: 24px;
            background: rgba(239, 68, 68, 0.12);
            color: #dc2626;
            font-size: 36px;
            animation: bounce 2s ease-in-out infinite;
        }
        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
            40% { transform: translateY(-10px); }
            60% { transform: translateY(-4px); }
        }
        h1 {
            margin: 0 0 12px;
            font-size: 2.1rem;
            line-height: 1.1;
            color: #111827;
        }
        .error-message {
            color: #4b5563;
            margin: 0 auto 28px;
            line-height: 1.75;
            max-width: 460px;
            font-size: 1rem;
        }
        .button-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 12px;
            margin-top: 12px;
        }
        .btn-primary {
            min-width: 150px;
            border-radius: 12px;
            padding: 12px 20px;
            box-shadow: 0 10px 24px rgba(59, 130, 246, 0.16);
        }
        .btn-secondary {
            min-width: 150px;
            border-radius: 12px;
            padding: 12px 20px;
            background: #f3f4f6;
            color: #111827;
            border: 1px solid rgba(15, 23, 42, 0.08);
        }
        .btn-secondary:hover {
            background: #e5e7eb;
            color: #111827;
        }
        .help-text {
            margin-top: 28px;
            padding-top: 22px;
            border-top: 1px solid rgba(15, 23, 42, 0.08);
            color: #6b7280;
        }
        .help-text h3 {
            margin-bottom: 10px;
            font-size: 1rem;
            color: #111827;
        }
        .help-text p {
            margin: 0;
            font-size: 0.96rem;
            line-height: 1.7;
        }
        .help-text a {
            color: #2563eb;
            text-decoration: none;
        }
        .help-text a:hover {
            text-decoration: underline;
        }
        @media (max-width: 576px) {
            body { padding: 16px; }
            .error-container { padding: 28px 20px; }
            h1 { font-size: 1.75rem; }
            .error-icon { width: 72px; height: 72px; font-size: 32px; }
            .button-container { gap: 10px; }
        }
    </style>
</head>
<body>
    <div class="frame">
        <div class="card error-container">
            <div class="error-icon">❌</div>
            <h1>Verification Failed</h1>
            <p class="error-message">
                Sorry, the invitation cannot be viewed right now. Please try again or return to the invitation page.
            </p>
            <div class="button-container">
                <a href="index.php" class="btn btn-primary">🔄 Try Again</a>
                <a href="index.php" class="btn btn-secondary">🏠 Return Home</a>
            </div>
            <div class="help-text">
                <h3>Need help?</h3>
                <p>If this continues, refresh the page or contact <a href="mailto:events@google.com">events@google.com</a>.</p>
            </div>
        </div>
    </div>
</body>
</html>
