<!DOCTYPE html>
<html lang="{{ get_admin_language() }}">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{{ t('reset_password.title') }} - AliothPress</title>
    <link rel="stylesheet" href="/static/css/admin.css">
</head>
<body class="auth-page">
    <div class="auth-card">
        <h1><img src="{{ url_for('static', filename='img/admin-star.png') }}" alt="" width="32" height="32" class="sidebar-brand-icon"> AliothPress</h1>
        <p class="auth-subtitle">{{ t('reset_password.title') }}</p>
        
        {% with messages = get_flashed_messages(with_categories=true) %}
            {% if messages %}
                {% for category, message in messages %}
                    <div class="alert alert-{{ category }}">{{ message }}</div>
                {% endfor %}
            {% endif %}
        {% endwith %}
        
        <form method="POST">
            <input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
            <div class="form-group">
                <label for="password">{{ t('reset_password.password_label') }}</label>
                <input type="password" id="password" name="password" required autocomplete="new-password"
                       placeholder="{{ t('reset_password.password_placeholder') }}">
                <div class="help-text">{{ t('reset_password.password_help') }}</div>
            </div>
            
            <div class="form-group">
                <label for="confirm_password">{{ t('reset_password.confirm_label') }}</label>
                <input type="password" id="confirm_password" name="confirm_password" required autocomplete="new-password"
                       placeholder="{{ t('reset_password.confirm_placeholder') }}">
            </div>
            
            <button type="submit">{{ t('reset_password.submit_btn') }}</button>
        </form>
        
        <div class="auth-link">
            <a href="{{ url_for('admin_login') }}">{{ t('reset_password.back_to_login') }}</a>
        </div>
    </div>
</body>
</html>
