{% extends "base.html" %}

{% block content %}
<section class="container py-5">
  <div class="row justify-content-center">
    <div class="col-md-6">
      <div class="glass-card">
        <h2 class="text-white mb-4">Create Your Profile</h2>
        <p class="text-secondary small mb-4">Join Gatsby and connect with the next generation of student-led startups. Only university or graduate emails from the last 5 years are accepted.</p>
        
        <form method="post">
          {% csrf_token %}
          {% for field in form %}
            <div class="mb-3">
              <label class="form-label text-white small fw-bold">{{ field.label }}</label>
              <input type="{{ field.widget_type }}" name="{{ field.html_name }}" class="form-control bg-dark text-white border-secondary rounded-pill px-4 py-2" required>
              {% if field.help_text %}
                <div class="form-text text-secondary small">{{ field.help_text }}</div>
              {% endif %}
              {% if field.errors %}
                <div class="text-danger small mt-1">{{ field.errors.0 }}</div>
              {% endif %}
            </div>
          {% endfor %}
          
          <div class="d-grid mt-4">
            <button type="submit" class="btn btn-primary btn-lg">Sign Up</button>
          </div>
        </form>
        
        <div class="text-center mt-4">
          <p class="text-secondary small">Already have an account? <a href="{% url 'login' %}" class="text-white fw-bold">Sign In</a></p>
        </div>
      </div>
    </div>
  </div>
</section>
{% endblock %}
