Teaching union calls for ‘brighter future’ for Scottish education