<!DOCTYPE html>
<html lang="id">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Akses Ditolak</title>
    <style>
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            margin: 0;
            padding: 0;
            height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            overflow: hidden;
            color: #333;
        }

        .container {
            text-align: center;
            padding: 40px;
            background-color: rgba(255, 255, 255, 0.9);
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            max-width: 500px;
            position: relative;
            z-index: 10;
            transform: scale(0.95);
            animation: scaleIn 0.5s forwards;
        }

        h1 {
            font-size: 2.5rem;
            margin-bottom: 20px;
            color: #e74c3c;
        }

        p {
            font-size: 1.1rem;
            margin-bottom: 30px;
            line-height: 1.6;
        }

        .lock-icon {
            font-size: 5rem;
            color: #e74c3c;
            margin-bottom: 20px;
            animation: bounce 2s infinite;
        }

        .btn {
            display: inline-block;
            padding: 12px 30px;
            background-color: #3498db;
            color: white;
            text-decoration: none;
            border-radius: 50px;
            font-weight: bold;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
        }

        .btn:hover {
            background-color: #2980b9;
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
        }

        .floating-objects {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
        }

        .floating {
            position: absolute;
            background-color: rgba(231, 76, 60, 0.1);
            border-radius: 50%;
            animation: float 15s infinite linear;
        }

        @keyframes scaleIn {
            from {
                transform: scale(0.95);
                opacity: 0;
            }
            to {
                transform: scale(1);
                opacity: 1;
            }
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% {
                transform: translateY(0);
            }
            40% {
                transform: translateY(-20px);
            }
            60% {
                transform: translateY(-10px);
            }
        }

        @keyframes float {
            0% {
                transform: translateY(0) rotate(0deg);
            }
            100% {
                transform: translateY(-1000px) rotate(720deg);
            }
        }

        .shake {
            display: inline-block;
            animation: shake 0.5s;
        }

        @keyframes shake {
            0%, 100% {
                transform: translateX(0);
            }
            10%, 30%, 50%, 70%, 90% {
                transform: translateX(-5px);
            }
            20%, 40%, 60%, 80% {
                transform: translateX(5px);
            }
        }
    </style>
</head>
<body>
    <div class="floating-objects" id="floatingObjects"></div>
    
    <div class="container">
        <div class="lock-icon">ðŸ”’</div>
        <h1 class="shake">Akses Ditolak!</h1>
        <p>Maaf, Anda tidak memiliki izin untuk mengakses halaman ini. Silakan hubungi administrator atau kembali ke halaman utama.</p>
        <a href="/" class="btn">Kembali ke Beranda</a>
    </div>

    <script>
        // Membuat objek mengambang
        function createFloatingObjects() {
            const container = document.getElementById('floatingObjects');
            const colors = ['rgba(231, 76, 60, 0.1)', 'rgba(52, 152, 219, 0.1)', 'rgba(46, 204, 113, 0.1)'];
            
            for (let i = 0; i < 15; i++) {
                const floating = document.createElement('div');
                floating.classList.add('floating');
                
                // Random properties
                const size = Math.random() * 100 + 50;
                const posX = Math.random() * window.innerWidth;
                const posY = Math.random() * window.innerHeight + window.innerHeight;
                const color = colors[Math.floor(Math.random() * colors.length)];
                const delay = Math.random() * 15;
                const duration = Math.random() * 20 + 10;
                
                floating.style.width = `${size}px`;
                floating.style.height = `${size}px`;
                floating.style.left = `${posX}px`;
                floating.style.top = `${posY}px`;
                floating.style.backgroundColor = color;
                floating.style.animationDuration = `${duration}s`;
                floating.style.animationDelay = `${delay}s`;
                
                container.appendChild(floating);
            }
        }

        // Animasi tombol ketika hover
        document.querySelector('.btn').addEventListener('mouseover', function() {
            this.classList.add('shake');
        });

        document.querySelector('.btn').addEventListener('animationend', function() {
            this.classList.remove('shake');
        });

        // Jalankan saat halaman dimuat
        window.onload = function() {
            createFloatingObjects();
            
            // Animasi teks akses ditolak
            const heading = document.querySelector('h1');
            setTimeout(() => {
                heading.classList.add('shake');
            }, 1000);
            
            heading.addEventListener('animationend', function() {
                this.classList.remove('shake');
            });
        };
    </script>
</body>
</html>