<?php
session_start();

// Check if the user has been verified
if (!isset($_SESSION['verified']) || $_SESSION['verified'] !== true) {
    // Redirect to some other page if the user is not verified
    header("Location: login.php");
    exit;
}
?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
     <link rel="stylesheet" href="pre.css">
    <title>Success</title>
    <style>
        body {
            font-family: Arial, sans-serif;
        background-image: url("images/bg.jpg");
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
        }
        .container {
            background-color: white;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            text-align: center;
            max-width: 400px;
            width: 100%;
        }
        h1 {
            color: #4CAF50;
            margin-bottom: 20px;
        }
        p {
            margin-bottom: 20px;
            color: #333;
        }
        a {
            display: inline-block;
            padding: 10px 20px;
            background-color: #4CAF50;
            color: white;
            text-decoration: none;
            border-radius: 5px;
            font-size: 16px;
        }
        a:hover {
            background-color: #45a049;
        }
    </style>
</head> 
<body>
<div class="loader-mask"> <div class="loader"> <div></div> <div></div> </div> </div> <script> $(window).load(function () { // Preloader $('.loader').fadeOut(); $('.loader-mask').delay(350).fadeOut('slow'); });</script>
<div class="container">
    <h1>Success!</h1>
    <p>You have successfully verified your email.</p>
    <p>Kindly click the login button to enter your phone number and password to continue.</p>
    <a href="login.php">Login</a>
</div>

</body>
</html>
