<div class="row justify-content-center">
    <div class="col-md-6">
        <div class="card">
            <div class="card-header">
                <h5 class="mb-0"><i class="fas fa-key me-2"></i><?= lang('auth.change_password') ?></h5>
            </div>
            <div class="card-body">
                <form method="POST" action="/change-password" data-ajax="true">
                    <?= csrf_field() ?>
                    <div class="mb-3">
                        <label class="form-label"><?= lang('auth.current_password') ?> <span class="text-danger">*</span></label>
                        <input type="password" name="current_password" class="form-control" required>
                        <div class="invalid-feedback" data-field="current_password"></div>
                    </div>
                    <div class="mb-3">
                        <label class="form-label"><?= lang('auth.new_password') ?> <span class="text-danger">*</span></label>
                        <input type="password" name="new_password" class="form-control" required minlength="8">
                        <div class="invalid-feedback" data-field="new_password"></div>
                        <small class="text-muted">Minimum <?= Config::get('password_min_length', 8) ?> characters</small>
                    </div>
                    <div class="mb-3">
                        <label class="form-label"><?= lang('auth.confirm_password') ?> <span class="text-danger">*</span></label>
                        <input type="password" name="new_password_confirmation" class="form-control" required>
                        <div class="invalid-feedback" data-field="new_password_confirmation"></div>
                    </div>
                    <div class="d-flex gap-2">
                        <button type="submit" class="btn btn-primary"><i class="fas fa-save me-1"></i><?= lang('common.save') ?></button>
                        <a href="/dashboard" class="btn btn-secondary"><?= lang('common.cancel') ?></a>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>