﻿html,
body {
    height: 100%;
}

.layout {
    /*background: #ebebeb;*/
    min-height: 580px;
    height: 100%;
    position: relative;
    overflow: hidden;
    background-image: url(images/home/logon-page-background.png);
}

/*
.layout:before {
    content:"";
    display:inline-block;
    vertical-align:middle;
    height:100%;
}
*/

.bg-logon-main-picture {
    background-image: url(images/home/logon-main-picture.png);
    background-size: cover;
    height: 100%;
    width: 65%;
    display: inline-block;
}

.bg-logon-main-picture img {
    width: 100%;
    height: 100%;
}

.bg-logon-page {
    /*不知道为什么，它和图片并排时，不是并列，而是换行了,只能用这种拉伸法垂直居中*/
    float: right;
    width: 35%;
    height: 385px;
    top: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    position: absolute;
    /*
    IE8不支持这种垂直居中模式
    position: relative;
    top: 50%;
    transform: translate(0,-50%);
    */
}

/*header*/
.bg-header {
    display: block;
    margin: 0;
    padding: 0;
    color: White;
    background-color: #565656;
    min-height: 32px;
}

.bg-header a {
    color: #999;
    text-decoration: none;
    cursor: default;
}

.bg-header .bg-nav {
    background: transparent url(images/global.png?v=2015.05.11) repeat-x;
    background-position: 0 -200px;
    width: 100%;
}

.bg-header .bg-header-inner .bg-nav-logo {
    display: inline-block;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 32px;
    width: 100px;
    float: left;
    background-repeat: no-repeat;
    background-image: url(images/home/logo-gaia.png);
}

/*body*/
.bg-logon-body {}

.bg-logon-body .bg-container {

    /*如果高度没有70%,那么1366*768时高度不够,以下设置为垂直居中,IE不支持transform*/
    height: 60%;
    width: 70%;
    padding: 0px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    position: absolute;
    /*
        margin-left: 15%;
        top: 50%;        
        transform: translate(0,-50%);               
        position:relative;
        */
    background-color: white;
}

.bg-logon-body .bg-logon-title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
}

.bg-logon-body .bg-logon-content {
    text-align: left;
    width: 100%;
    /*margin: 10px auto;*/
    padding: 20px;
    /*
        border: 1px solid #e5e5e5;
        background: #f1f1f1;
        */
    /*margin: 20px auto 0;*/
}

.bg-logon-page .btn {
    border-radius: 0px;
}

.bg-logon-banner img {
    width: 100%;
}

@media screen and (max-height: 768px) {
    .bg-logon-body .bg-container {
        /*如果高度没有70%,那么1366*768时高度不够*/
        height: 80%;
    }
}

@media screen and (max-width: 500px) {
    .bg-logon-main-picture {
        display: none;
    }

    .bg-logon-page {
        width: 100%;
    }

    .bg-logon-banner img {
        width: 100%;
    }
}

/*
--暂时注释调，统一随外部变化
@media screen and (min-width: 768px) {
    .bg-logon-body .bg-logon-content {
        width: 50%;
    }
}

@media screen and (min-width: 992px) {
    .bg-logon-body .bg-logon-content {
        width: 30%;
    }
}
*/

.bg-logon-body .form-horizontal {}

.bg-logon-body .form-horizontal .input-group-addon {
    border: 1px solid #e6e6e6;
    border-left: 0;
    background: #fff;
}

.bg-logon-body .form-horizontal .bg-logon-tip {
    font-size: 16px;
    color: #666666;
}


.bg-logon-body .form-horizontal .ctVcode {
    margin-bottom: 15px;
}

.bg-logon-body .form-horizontal .ctVcode img {
    width: 98px;
    height: 36px;
    cursor: pointer;
    border: 1px solid #e4eef9;
}

.bg-logon-body .form-horizontal .form-group {
    margin-bottom: 10px;
}

.bg-logon-body .form-horizontal .form-control {
    border-color: #e6e6e6;
    line-height: 20px;
    padding: 8px;
    border: 1px solid #e6e6e6;
    color: #333;
    font-size: 14px;
    font-weight: bold;
    -webkit-appearance: none;
    height: auto;
}

.bg-logon-body .form-horizontal .placeholder {
    position: absolute;
    top: 9px;
    left: 12px;
    font-style: normal;
    color: #999999;
    font-size: 14px;
    line-height: 20px;
    display: none;
    zoom: 1;
    z-index: 2;
}

.bg-logon-body .form-horizontal .bg-controls {
    position: relative;
    display: table;
    border-collapse: separate;
    width: 100%;
}

.bg-logon-body .form-horizontal .bg-controls .bg-addon {
    display: table-cell;
    vertical-align: middle;
    padding-left: 10px;
    width: 98px;
}


.bg-logon-body .form-horizontal .links {
    text-align: center;
    margin: 10px 0;
}

.bg-logon-body .form-horizontal .bg-error-area {
    color: red;
}

.bg-logon-body .form-horizontal button.btn-primary {
    margin-top: 32px;
}

/*bg-otp-window*/
.bg-otp-window {}

.bg-otp-window .modal-dialog {
    width: 320px;
}

.bg-otp-window .cvOtp {
    /*margin: 8px 20px 8px 20px;*/
}

.bg-otp-window .input-otp {
    width: 286px;
    clear: both;
    margin: 5px 0;
}

.bg-otp-window .cvOtpMsg {
    float: left;
    color: red;
}

.bg-otp-window .cvOtpLogon {
    float: right;
}

.modal-backdrop {
    z-index: 2;
}

/*footer*/
.bg-footer {
    color: #fff;
    background-color: #A4A4A4;
    line-height: 25px;
    padding: 0 0 0 36px;
    margin: 5px auto 0;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
}

.ie8 .glyphicon {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-top: 1px;
    *margin-right: .3em;
    line-height: 14px;
    vertical-align: text-top;
    background-image: url("images/glyphicons-halflings.png");
    /*background-repeat: no-repeat;*/
}

.ie8 .glyphicon.glyphicon-user {
    background-position: -168px 0px;
}

.ie8 .glyphicon.glyphicon-lock {
    background-position: -287px -24px;
}

button,
button:hover,
button.hover button:focus,
button.focus,
button:active,
button.active {
    outline: none !important;
}