import os def load_login_qss(): """ Load and return the contents of 'login.qss', located in the same directory as this script. """ base = os.path.dirname(os.path.abspath(__file__)) path = os.path.join(base, "login.qss") try: with open(path, encoding="utf-8") as f: return f.read() except OSError as e: print(f"Error loading login.qss: {e}") return ""