<?php
	 // login message
	function logingpower_loginmessage() {
	
		$msg_bgcolor=sanitize_hex_color(get_option('logingpower_settings')['logingpower_loginmessage_bgcolor'] ??'#ffffff');
		$msg_padding=absint(get_option('logingpower_settings')['logingpower_loginmessage_paddding'] ??12);
		$msg_color= sanitize_hex_color(get_option('logingpower_settings')['logingpower_loginmessage_color'] ??'#000000');
		$msg_fontsize=(get_option('logingpower_settings')['logingpower_loginmessage_fontsize'] )??'12';
		$msg_borderleft_width=absint(get_option('logingpower_settings')['logingpower_loginmessage_borderleft_width'] ??4);
		$msg_borderleft_style=sanitize_text_field(get_option('logingpower_settings')['logingpower_loginmessage_borderleft_style'] ??'solid');
		$msg_borderleft_color=sanitize_hex_color(get_option('logingpower_settings')['logingpower_loginmessage_borderleft_color'] ??'#72aee6');
		$logingpower_style="
			body.login div#login .message,
			body.login div#login .notice,
			body.login div#login .success,
			body.login div#login .notice-error {
				border-left:".esc_attr($msg_borderleft_width).'px '. esc_attr($msg_borderleft_style). esc_attr($msg_borderleft_color)." !important ;
				padding: ". esc_attr($msg_padding)."px !important;
				margin-left: 0;
				margin-bottom: 20px;
				background-color:". esc_attr($msg_bgcolor)."!important ;
				box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
				word-wrap: break-word;
				color:". esc_attr($msg_color)."!important;
				font-size:". esc_attr($msg_fontsize)."px !important;
				
			}";

		wp_add_inline_style('login',$logingpower_style);
	}add_action( 'login_enqueue_scripts', 'logingpower_loginmessage') ;
	// add_action( 'login_head', 'logingpower_loginmessage') ;
