/* global document */
(function () {
	document.addEventListener('DOMContentLoaded', function () {
		const passwordInput = document.getElementById('user_pass');
		if (passwordInput) {
			passwordInput.disabled = true;
			passwordInput.setAttribute('readonly', 'readonly');
		}

		const submitButton = document.getElementById('wp-submit');
		if (submitButton) {
			submitButton.disabled = true;
		}
	});
})();
