{% extends "base.html" %}

{% block content %}
<section class="container py-5">
  <div class="row justify-content-center">
    <div class="col-md-6 text-center">
      <div class="glass-card">
        <h2 class="text-white mb-4">Welcome Back to <span class="text-gradient">GATSBY</span></h2>
        <p class="text-secondary small mb-5">Sign in to your account and explore the peer-to-peer startup ecosystem.</p>
        
        <form method="post">
          {% csrf_token %}
          {% if form.non_field_errors %}
            <div class="alert alert-danger mb-4 rounded-pill small py-2">{{ form.non_field_errors.0 }}</div>
          {% endif %}
          
          <div class="mb-3 text-start">
            <label class="form-label text-white small fw-bold px-3">Username</label>
            <input type="text" name="username" class="form-control bg-dark text-white border-secondary rounded-pill px-4 py-2" required>
          </div>
          <div class="mb-3 text-start">
            <label class="form-label text-white small fw-bold px-3">Password</label>
            <input type="password" name="password" class="form-control bg-dark text-white border-secondary rounded-pill px-4 py-2" required>
          </div>
          
          <div class="d-grid mt-4">
            <button type="submit" class="btn btn-primary btn-lg">Sign In</button>
          </div>
        </form>
        
        <div class="text-center mt-4">
          <p class="text-secondary small">Don't have an account? <a href="{% url 'signup' %}" class="text-white fw-bold">Sign Up</a></p>
        </div>
      </div>
    </div>
  </div>
</section>
{% endblock %}
