<!DOCTYPE html>
<?php
session_start();
if (isset($_SESSION['email'])) {
    header('Location: dashboard.php');
    exit;
}
?>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Halaman Login</title>
    <link rel="stylesheet" href="assets/css/bootstrap.min.css">
    <script src="assets/js/bootstrap.bundle.min.js"></script>

</head>

<body>
    <div class="container-fluid">
        <form action="resend.php" method="post">
            <div class="row justify-content-center align-items-center vh-100">
                <div class="col-md-4">
                    <div class="card">
                        <div class="card-header text-center">
                            <h3>Verifikasi Ulang</h3>
                        </div>
                        <div class="card-body">
                            <div class="mb-3">
                                <label for="email" class="form-label">Email</label>
                                <input type="email" name="email" required placeholder="Masukkan email">
                            </div>
                            <button type="submit">Kirim Ulang OTP</button>
                            <p>Sudah punya akun? <a href="index.php">login</a></p>
                        </div>
                    </div>
                </div>
            </div>
            <p class="text-center">&copy;2025</p>
        </form>

    </div>
</body>

</html>