<?php
session_start();
session_destroy();
?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Syinpewa | Logout</title>
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    
    <link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="dist/css/AdminLTE.min.css">
    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">

    <style>
        body {
            background: #ecf0f5;
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100vh;
            margin: 0;
            font-family: 'Source Sans Pro', sans-serif;
        }
        .logout-box {
            background: white;
            padding: 40px;
            border-radius: 15px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
            text-align: center;
            max-width: 400px;
            width: 90%;
        }
        .icon-box {
            color: #dd4b39;
            font-size: 60px;
            margin-bottom: 20px;
        }
        .loader {
            border: 4px solid #f3f3f3;
            border-top: 4px solid #3c8dbc;
            border-radius: 50%;
            width: 30px;
            height: 30px;
            animation: spin 2s linear infinite;
            display: inline-block;
            vertical-align: middle;
            margin-right: 10px;
        }
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
    </style>
    
    <meta http-equiv="refresh" content="3; url=login.php">
</head>
<body>

<div class="logout-box">
    <div class="icon-box">
        <i class="glyphicon glyphicon-log-out"></i>
    </div>
    <h2 style="margin-top: 0; font-weight: 700; color: #333;">Sesi Berakhir</h2>
    <p class="text-muted">Terima kasih telah menggunakan sistem <b>Syinpewa</b>. Anda telah keluar secara aman.</p>
    
    <hr>
    
    <div style="margin-top: 20px;">
        <div class="loader"></div>
        <span class="text-primary">Mengalihkan ke halaman login...</span>
    </div>
    
    <div style="margin-top: 25px;">
        <small class="text-muted">Made With ❤️ by TechnoMancers © 2026</small>
    </div>
</div>

</body>
</html>