{% extends "base.html" %}

{% block title %}Login - FINA{% endblock %}

{% block content %}
<div class="auth-container">
    <div class="glass-card auth-card">
        <div style="text-align: center; margin-bottom: 1rem;">
            <img src="{{ url_for('static', filename='images/fina-logo.png') }}" alt="FINA" style="height: 80px; border-radius: 50%;">
        </div>
        <h1>FINA</h1>
        <p class="subtitle">Login to your account</p>
        
        <form method="POST" class="auth-form">
            <input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
            
            <div class="form-group">
                <label for="username">Username</label>
                <input type="text" id="username" name="username" required autofocus>
            </div>
            
            <div class="form-group">
                <label for="password">Password</label>
                <input type="password" id="password" name="password" required>
            </div>
            
            <button type="submit" class="btn btn-primary">Login</button>
        </form>
        
        <div class="auth-link">
            Don't have an account? <a href="{{ url_for('auth.register') }}">Register</a>
        </div>
    </div>
</div>
{% endblock %}
