// for both forms now ( allowed Characters her for strict mode )

function my_added_login_text(){
?>
<script type="text/javascript">
	const parentElement = document.getElementById("user_login").parentNode;
	const newElement = document.createElement("p");
	newElement.className = "allowedChars";
	const newContent = document.createTextNode("Erlaubte Zeichen: a-z 0-9 <space> _ . \ - @");
	newElement.appendChild(newContent);
	parentElement.append(newElement);
</script>
<?php 
}
add_action('register_form','my_added_login_text');
add_action('login_form','my_added_login_text');
function my_login_style(){ 
?>
<style type="text/css">
p.allowedChars {
    margin-bottom: 20px !important;
    font-size: 12px;
    color: #555d66;
}
input#user_login {
    margin-bottom: 5px;
}
</style>
<?php 
}
add_action( 'login_enqueue_scripts', 'my_login_style' );