<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sign In — NT Study Guide</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=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Lato:wght@300;400;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="/assets/css/style.css">
</head>
<body>
<div class="auth-wrapper">
  <div class="auth-card">
    <div class="auth-logo">
      <div class="logo-icon-lg">✝</div>
      <h1>NT Study Guide</h1>
      <p>New Testament · King James Version</p>
    </div>

    
    <div class="auth-tabs">
      <button class="auth-tab active" onclick="switchTab('login')">Sign In</button>
      <button class="auth-tab " onclick="switchTab('register')">Register</button>
    </div>

    <!-- Login Form -->
    <form class="auth-form active" id="form-login" method="POST">
      <input type="hidden" name="action" value="login">
      <div class="form-group">
        <label class="form-label" for="login-user">Username or Email</label>
        <input class="form-input" type="text" id="login-user" name="username"
               value=""
               placeholder="Enter your username or email" required autocomplete="username">
      </div>
      <div class="form-group">
        <label class="form-label" for="login-pass">Password</label>
        <input class="form-input" type="password" id="login-pass" name="password"
               placeholder="Enter your password" required autocomplete="current-password">
      </div>
      <button type="submit" class="btn btn-primary btn-full" style="margin-top:0.5rem">
        Sign In
      </button>
      <p style="text-align:center;margin-top:1rem;font-family:var(--font-sans);font-size:0.8rem;color:var(--color-charcoal-lt)">
        No account? <a href="#" onclick="switchTab('register');return false">Register here</a>
      </p>
    </form>

    <!-- Register Form -->
    <form class="auth-form " id="form-register" method="POST">
