<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Register - Resume Builder</title>
  <!-- Bootstrap CDN -->
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
  <style>
    body {
      background: url("https://play-lh.googleusercontent.com/eR9vi6xlkQpQzGdslMO0jZwJnpbCUbfOBeJEUPEFvRkvlh47suYKUrVyLFfMMzOk3NlA=h500") no-repeat center center fixed;
      background-size: cover;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }
    .register-container {
      background: rgba(255, 255, 255, 0.9);
      padding: 30px;
      border-radius: 15px;
      box-shadow: 0px 4px 15px rgba(0,0,0,0.3);
      max-width: 400px;
      margin: 100px auto;
    }
    .form-control {
      border-radius: 10px;
    }
    .btn-custom {
      background: #007bff;
      color: white;
      border-radius: 10px;
    }
    .btn-custom:hover {
      background: #0056b3;
    }
  </style>
</head>
<body>
  <div class="container">
    <div class="register-container">
      <h2 class="text-center mb-4">Create Account</h2>
      <form method="POST">
        {% csrf_token %}
        <div class="mb-3">
          <input type="text" name="username" class="form-control" placeholder="Username" required>
        </div>
        <div class="mb-3">
          <input type="text" name="email" class="form-control" placeholder="Email" required>
        </div>
        <div class="mb-3">
          <input type="password" name="password" class="form-control" placeholder="Password" required>
        </div>
        <div class="mb-3">
          <input type="password" name="password1" class="form-control" placeholder="Confirm Password" required>
        </div>
        <button type="submit" class="btn btn-custom w-100">Register</button>
      </form>
      <p class="text-center mt-3">Already have an account? 
        <a href="{% url 'login' %}">Login</a>
      </p>
      {% for message in messages %}
        <p class="text-danger text-center mt-2">{{ message }}</p>
      {% endfor %}
    </div>
  </div>
</body>
</html>
