<?php
// index.php - Redirecionamento para login
header("Refresh: 3; URL=login.php"); // Redireciona após 3 segundos
?>
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>IBO PRO</title>
<link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet">
<style>
html, body {
    height: 100%;
    margin: 0;
    font-family: 'Nunito', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #fff;
}
.redirect-wrapper {
    text-align: center;
    padding: 40px;
    border-radius: 15px;
    background: rgba(0,0,0,0.6);
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.redirect-wrapper img {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    border-radius: 50%;
    object-fit: cover;
    animation: spin 3s linear infinite;
}
.redirect-wrapper h2 {
    margin-bottom: 15px;
}
.redirect-wrapper p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #fdd835;
}
@keyframes spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}
@media (max-width: 576px) {
    .redirect-wrapper {
        padding: 30px 20px;
    }
    .redirect-wrapper img {
        width: 100px;
        height: 100px;
    }
}
</style>
</head>
<body>
<div class="redirect-wrapper">
    <img src="img/logo.png" alt="Logo">
    <h2>Bem-vindo ao Painel IBO PRO</h2>
    <p>Redirecionando para a página de login...</p>
    <i class="fas fa-spinner fa-spin fa-2x"></i>
</div>
</body>
</html>