<?php
// File: verify_pending.php
session_start();
include 'header.php';

$email = $_SESSION['pending_verification_email'] ?? null;
?>

<div class="bg-gray-50 py-16">
  <div class="max-w-md mx-auto bg-white p-8 rounded-lg shadow">
    <h2 class="text-2xl font-bold text-center mb-4 text-ucf-charcoal">Email Verification Required</h2>
    <p class="text-gray-600 text-center mb-6">
      Your account has been created but not yet verified.
      <br>Please check your email
      <?php if ($email): ?><strong><?php echo htmlspecialchars($email); ?></strong><?php endif; ?>
      for the verification code.
    </p>

    <div class="text-center">
      <a href="verify_otp.php" class="inline-block bg-ucf-green text-white px-4 py-2 rounded-lg hover:bg-ucf-green-dark">Enter OTP</a>
      <a href="resend_otp.php" class="inline-block ml-2 text-ucf-green font-semibold">Resend Code</a>
    </div>

    <div class="text-center mt-6">
      <a href="login.php" class="text-gray-500 hover:text-gray-700 text-sm">Back to Login</a>
    </div>
  </div>
</div>

<?php include 'footer.php'; ?>
