{% extends "base.html" %}

{% block title %}Login - Finance Tracker{% endblock %}

{% block content %}
<div class="auth-container">
    <div class="glass-card auth-card">
        <h1>{{ _('auth.welcome_back') }}</h1>
        <p class="subtitle">{{ _('auth.login') }}</p>
        
        <form method="POST" class="auth-form">
            <input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
            
            <div class="form-group">
                <label for="username">{{ _('auth.username') }}</label>
                <input type="text" id="username" name="username" required autofocus>
            </div>
            
            <div class="form-group">
                <label for="password">{{ _('auth.password') }}</label>
                <input type="password" id="password" name="password" required>
            </div>
            
            <button type="submit" class="btn btn-primary">{{ _('auth.sign_in') }}</button>
        </form>
        
        <p class="auth-link">{{ _('auth.no_account') }} <a href="{{ url_for('auth.register') }}">{{ _('auth.sign_up') }}</a></p>
    </div>
</div>
{% endblock %}
