<?php
require_once __DIR__ . '/includes/config.php';
// If already logged in, go to dashboard
if (isLoggedIn()) {
    redirect('dashboard.php');
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SPACE – Student Productivity App</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@200;400;500;600;700;800&display=swap" rel="stylesheet">
<link rel="stylesheet" href="assets/css/auth.css">
</head>
<body class="auth-page">

  <div class="corner top-left">
    <img src="assets/img/star.svg" class="star big" alt="">
    <img src="assets/img/star.svg" class="star small" alt="">
  </div>
  <div class="corner top-right">
    <img src="assets/img/star.svg" class="star big" alt="">
    <img src="assets/img/star.svg" class="star small" alt="">
  </div>
  <div class="corner bottom-left">
    <img src="assets/img/star.svg" class="star big" alt="">
    <img src="assets/img/star.svg" class="star small" alt="">
  </div>
  <div class="corner bottom-right">
    <img src="assets/img/star.svg" class="star big" alt="">
    <img src="assets/img/star.svg" class="star small" alt="">
  </div>

  <div style="text-align:center;position:relative;z-index:1;">
    <div class="logo-circle-lg" style="margin: 0 auto 32px;">
      <img src="assets/img/logo.svg" alt="SPACE" width="70">
    </div>
    <a href="login.php">
      <button class="neu-btn" style="width:200px;margin:0 auto;">GET STARTED</button>
    </a>
  </div>

  <div class="auth-footer">
    <a href="#">Terms & Conditions</a> &nbsp;|&nbsp; <a href="#">Privacy Policy</a>
  </div>

</body>
</html>
