<?php
include('config/sesiLogin.php')
?>
<!DOCTYPE html>
<html lang="id">
<head>
    <meta charset="UTF-8">
    <title>Login LEON GYM</title>
    <link rel="stylesheet" type="text/css" href="css/login.css">
</head>
<body>

<div class="login-box">
    <h2>Hi Member</h2>
    <p>Welcome to Leon GYM</p>

   <?php if (!empty($error)): ?>
    <div class="error"><?php echo htmlspecialchars($error); ?></div>
    <?php endif; ?>

    
    <form method="post">
        <div class="form-group">
            <input type="text" name="email" placeholder="Email" required />
        </div>
        <div class="form-group">
            <input type="password" name="password" placeholder="Password" required />
        </div>

        <div class="forgot"><a href="lupaPassword.php">Forgot password?</a></div>

        <button type="submit" name="login">Login</button>
                      
        <div class="options">
          <label class="remember-me">
            <input type="checkbox" name = "remember"/> Remember Me
          </label>
        </div>
    </form>

    <div class="signup">Don't have an account? <a href="register.php">Sign Up</a></div>
</div>
        

</body>
</html>
