<?php

// login Page Title
add_filter('login_title', function ($admin_title, $title) {
    return get_bloginfo('name').' &bull; '.$title;
}, 10, 2);

function ds1_my_login_logo() { 
	//FOR Update S sssssssssssssssssssssss 
	$bg_file = get_option('options_default_login_background');
    $bg_file = ( $bg_file) ? wp_get_attachment_image_url($bg_file, 'full') : DS1CDNBucket . 'admin/login-bg.jpg';
    ?>
    <style type="text/css">
		body.login {
			background-image: url(<?php echo $bg_file; ?>);
			background-size: cover;
    		background-position: bottom;
            display:flex;
            flex-direction: column;
		}
        #login {
            background: #fff;
            padding: 35px 25px !important;
            border-radius: 25px;
        }
        .language-switcher {
            display: none;
        }

        .login form {
            border: 0 !important;
            margin: 0 !important;
            padding: 0 !important;
            box-shadow: none !important;
        }
		#login h1, .login #nav, .login #backtoblog {
			display:none !important;
		}

        .login #login_error, .login .message, .login .success {
            border-width: 10px !important;
            box-shadow: none !important;
            border-radius: 40px !important;
        }
        .login #login_error {
            background: #ff7070 !important;
            color: #fff !important;
        }
        .login form .input {
            border-radius: 50px !important;
        }
        p.forgetmenot {
            float: none !important;
            background: #f9f9f9 !important;
        }
        #login form p.submit {
            display: block !important;
            text-align: center;
            padding: 10px !important;
        }
        #login form p.submit .button {
            float: none !important;
            background: #656565;
            border: 0 !important;
            border-radius: 50px !important;
            padding: 4px 30px !important;
        }
    </style>
<?php }
add_action( 'login_enqueue_scripts', 'ds1_my_login_logo' );