<?php

if(get_option('tigu_login_custom_wp')):
function my_login_logo() { ?>
<style type="text/css">
body.login div#login h1 a {
background-image: url(<?php echo get_option('tigu_custom_login_logo', ''); ?>); padding-bottom: <?php echo get_option('tigu_custom_login_logo_paddingb', '30'); ?>px;
background-position: center !important; margin:0 auto !important;
background-size: auto;
background-repeat: no-repeat;
}

body.login {
padding-left:<?php echo get_option('tigu_custom_loginbox_paddingleft', '0'); ?>px ;
padding-right:<?php echo get_option('tigu_custom_loginbox_paddingright', '0'); ?>px ;
background-color:#<?php echo get_option('tigu_custom_login_bgcolor', 'F4F4F4'); ?> !important;
background-image:url(<?php echo get_option('tigu_custom_login_bgimage', ''); ?>) !important ;
background-size: 100%;
background-position: <?php echo get_option('tigu_cl_bgimage_vposition', 'center'); ?> <?php echo get_option('tigu_cl_bgimage_hposition', 'center'); ?> !important;
background-repeat: <?php echo get_option('tigu_cl_bgimage-repeat', 'no-repeat'); ?> !important;}

div.updated, .login .message {
margin: 12px 0 13px;
font-size : 11px;
text-align: center;
line-height:15px;
background: #f3eb90;
background: -webkit-gradient(linear, left top, left bottom, from(#fbf4a2), to(#ebe27f));
background: -moz-linear-gradient(top, #fbf4a2, #ebe27f);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fbf4a2', endColorstr='#ebe27f');
border-color: #f5e121 #f5e121 #e0cc10;
color: #444;
text-shadow: 0 1px 1px #ffff98;
-webkit-box-shadow: 0 1px 2px #e9e3a4, inset 0 1px 0 #fee795;
-moz-box-shadow: 0 1px 2px #e9e3a4, inset 0 1px 0 #fee795;
box-shadow: 0 1px 2px #e9e3a4, inset 0 1px 0 #fee795;
}

div.error, .login #login_error {
margin: 12px 0 13px;
font-size : 11px;
text-align: center;
line-height:15px;
border-width: 0px;
background: #f3eb90;
background: -webkit-gradient(linear, left top, left bottom, from(#f9a89f), to(#eb8b80));
background: -moz-linear-gradient(top, #f9a89f, #eb8b80);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9a89f', endColorstr='#eb8b80');
border-color: #f53a21 #f53a21 #e03210;
color: #444;
text-shadow:none !important;
-webkit-box-shadow: 0 1px 2px #e8afaf, inset 0 1px 0 #ffaaaa;
-moz-box-shadow: 0 1px 2px #e8afaf, inset 0 1px 0 #ffaaaa;
box-shadow: 0 1px 2px #e8afaf, inset 0 1px 0 #ffaaaa;
}

.login #login_error a { color : #565656; }
.login #login_error a:hover {color : #393939;}

input.button-primary {
display: inline-block;
text-decoration: none;
outline: none;
cursor: pointer;
border-width: 0 !important;
text-shadow: 0 1px 0 #fff;
margin-right : 5px;
background: #<?php echo get_option('tigu_custom_login_button_bg', 'fb2900' ); ?> !important;
color: #<?php echo get_option('tigu_custom_login_bttext', 'ffffff' ); ?> !important;
text-shadow: #000 !important;
-webkit-border-radius: <?php echo get_option('tigu_custom_login_button_border-radius', '0' ); ?>px !important;
-moz-border-radius: <?php echo get_option('tigu_custom_login_form_button_radius', '0' ); ?>px !important;
border-radius: <?php echo get_option('tigu_custom_login_form_button_radius', '0' ); ?>px !important;
text-shadow: none !important;
}

input.button-primary:hover, input.button-primary:focus{background: #<?php echo get_option('tigu_custom_login_button_bg', 'fb2900' ); ?> !important;}
input.button-primary:active{background: #<?php echo get_option('tigu_custom_login_button_bg', 'fb2900' ); ?> !important;}

#login {width : <?php echo get_option('tigu_custom_login_form_width', '350'); ?>px !important;}

body.login div#login form#loginform {
background-color:  #<?php echo get_option('tigu_custom_login_form_bgcolor', 'FFFFFF' ); ?> !important;
margin-left: 0;
padding : 30px 47px 80px 47px !important;
-webkit-border-radius: <?php echo get_option('tigu_custom_login_form_border-radius', '3' ); ?>px !important;
-moz-border-radius: <?php echo get_option('tigu_custom_login_form_border-radius', '3' ); ?>px !important;
border-radius: <?php echo get_option('tigu_custom_login_form_border-radius', '3' ); ?>px !important;
border : <?php echo get_option('tigu_custom_login_form_border-width', '1' ); ?>px solid #<?php echo get_option('tigu_custom_login_form_border-color', 'bcbcbc' ); ?> !important;
-moz-box-shadow: 0 0 1px 3px #<?php echo get_option('tigu_custom_login_form_boxshadow', '108AAE' ); ?>  !important;
-webkit-box-shadow: 0 0 1px 3px #<?php echo get_option('tigu_custom_login_form_boxshadow', '108AAE' ); ?>   !important;
box-shadow: 0 0 1px 3px #<?php echo get_option('tigu_custom_login_form_boxshadow', '108AAE'); ?>  !important;
}



#registerform, #lostpasswordform{
background-color:  #<?php echo get_option('tigu_custom_login_form_bgcolor', 'FFFFFF' ); ?> !important;
margin-left: 0;
padding : 30px 47px 80px 47px !important;
-webkit-border-radius: <?php echo get_option('tigu_custom_login_form_border-radius', '3' ); ?>px !important;
-moz-border-radius: <?php echo get_option('tigu_custom_login_form_border-radius', '3' ); ?>px !important;
border-radius: <?php echo get_option('tigu_custom_login_form_border-radius', '3' ); ?>px !important;
border : <?php echo get_option('tigu_custom_login_form_border-width', '1' ); ?>px solid #<?php echo get_option('tigu_custom_login_form_border-color', 'bcbcbc' ); ?> !important;
-moz-box-shadow: 0 0 1px 3px #<?php echo get_option('tigu_custom_login_form_boxshadow', '108AAE' ); ?>  !important;
-webkit-box-shadow: 0 0 1px 3px #<?php echo get_option('tigu_custom_login_form_boxshadow', '108AAE' ); ?>   !important;
box-shadow: 0 0 1px 3px #<?php echo get_option('tigu_custom_login_form_boxshadow', '108AAE'); ?>  !important;
}

#reg_passmail{color : #<?php echo get_option('tigu_custom_login_form_plabel', '636363'); ?> !important;}


.login label {
color : #<?php echo get_option('tigu_custom_login_form_plabel', '636363'); ?> !important;
font-weight: bold;
font-size : 14px !important;
text-align: left !important;
}

body.login div#login form#loginform p.submit input#wp-submit {
display: inline-block;
text-decoration: none;
outline: none;
cursor: pointer;
border-width: 0 !important;
color: #555;
text-shadow: 0 1px 0 #fff;
margin-right : 5px;
background: #<?php echo get_option('tigu_custom_login_button_bg', 'fb2900' ); ?> !important;
color: #fff !important;
text-shadow: #000 !important;
-webkit-border-radius: <?php echo get_option('tigu_custom_login_button_border-radius', '0' ); ?>px !important;
-moz-border-radius: <?php echo get_option('tigu_custom_login_form_button_radius', '0' ); ?>px !important;
border-radius: <?php echo get_option('tigu_custom_login_form_button_radius', '0' ); ?>px !important;
}

body form .input, #user_pass, #user_login, #user_email {
border : <?php echo get_option('tigu_custom_login_form_border-width', '1' ); ?>px solid #<?php echo get_option('tigu_custom_login_form_border-color', 'bcbcbc' ); ?> !important;
background-color:#<?php echo get_option('tigu_custom_login_form_input', 'FFFFFF' ); ?> !important;
}


body.login div#login p#nav {color: #<?php echo get_option('tigu_custom_login_metas', '333333' ); ?> !important; text-shadow:none!important; text-align:center!important; margin:0 auto!important; font-size:<?php echo get_option('tigu_custom_login_metas_fs', '12' ); ?>px!important; font-weight: <?php echo get_option('tigu_custom_login_metas_fw', 'normal' ); ?> !important;}
body.login div#login p#nav a {color: #<?php echo get_option('tigu_custom_login_metas', '333333' ); ?> !important; text-shadow:none!important; text-align:center!important; margin:0 auto!important; font-size:<?php echo get_option('tigu_custom_login_metas_fs', '12' ); ?>px!important; font-weight: <?php echo get_option('tigu_custom_login_metas_fw', 'normal' ); ?> !important;}
body.login div#login p#backtoblog {color: #<?php echo get_option('tigu_custom_login_metas', '333333' ); ?> !important;text-shadow:none!important; text-align:center!important; margin:0 auto!important; font-size:<?php echo get_option('tigu_custom_login_metas_fs', '12' ); ?>px!important; font-weight: <?php echo get_option('tigu_custom_login_metas_fw', 'normal' ); ?> !important; text-indent:-9999px;}
body.login div#login p#backtoblog a {color: #<?php echo get_option('tigu_custom_login_metas', '333333' ); ?>!important; text-shadow:none!important; text-align:center!important; margin:0 auto!important; font-size:<?php echo get_option('tigu_custom_login_metas_fs', '12' ); ?>px!important; font-weight: <?php echo get_option('tigu_custom_login_metas_fw', 'normal' ); ?> !important;}

</style>
<?php }
add_action( 'login_enqueue_scripts', 'my_login_logo' );

endif;

function my_login_logo_url() {
return get_bloginfo( 'url' );
}
add_filter( 'login_headerurl', 'my_login_logo_url' );


if(get_option('tigu_custom_login_title')):
function my_login_logo_url_title() {
return get_option('tigu_custom_login_title');
}
add_filter( 'login_headertitle', 'my_login_logo_url_title' );
endif;

?>