html { height: 100%; }

body {
    background: url(/images/bg-login.jpg) no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    position: static;
    font-size: 14px;
    margin: 0;
    padding: 0;
    height: 100%;
}

.main-body {
    top: 50%;
    left: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    overflow: hidden;
}

.login-main {
    width: 420px;
    position: relative;
}

/* 顶部蓝色标题栏 */
.login-main .login-top {
    height: 80px;
    background: linear-gradient(135deg, #1a365d 0%, #1E9FFF 100%);
    border-radius: 12px 12px 0 0;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #fff;
    line-height: 80px;
    text-align: center;
    overflow: hidden;
    position: relative;
}
.login-main .login-top .bg1 {
    display: inline-block;
    width: 74px; height: 74px;
    background: #fff; opacity: .08;
    border-radius: 0 74px 0 0;
    position: absolute; left: 0; top: 36px;
}
.login-main .login-top .bg2 {
    display: inline-block;
    width: 94px; height: 94px;
    background: #fff; opacity: .08;
    border-radius: 50%;
    position: absolute; right: -16px; top: -16px;
}

/* 白色表单区 */
.login-main .login-bottom {
    width: 420px;
    background: #fff;
    border-radius: 0 0 12px 12px;
    padding-bottom: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,.15);
}
.login-main .login-bottom .center {
    width: 300px;
    margin: 0 auto;
    padding-top: 32px;
    padding-bottom: 0;
    position: relative;
}

/* 输入行 */
.login-main .login-bottom .center .item {
    width: 300px;
    height: 42px;
    border-bottom: 2px solid #e8ecf0;
    margin-bottom: 28px;
    transition: border-color .2s;
}
.login-main .login-bottom .center .item:focus-within {
    border-bottom-color: #1E9FFF;
}
.login-main .login-bottom .center .item .icon {
    display: inline-block;
    width: 33px; height: 22px;
}
.login-main .login-bottom .center .item input {
    display: inline-block;
    width: 240px; height: 28px;
    padding: 0;
    position: absolute;
    border: 0; outline: 0;
    font-size: 15px;
    letter-spacing: 0;
    color: #333;
}
input::-webkit-input-placeholder { color: #b0b8c4; }
input::-moz-placeholder { color: #b0b8c4; }
input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px white inset !important;
}

/* icon sprites */
.login-main .login-bottom .center .item .icon-1 { background: url(/images/icon-login.png) no-repeat 1px 0; }
.login-main .login-bottom .center .item .icon-2 { background: url(/images/icon-login.png) no-repeat -54px 0; }
.login-main .login-bottom .center .item .icon-3 { background: url(/images/icon-login.png) no-repeat -106px 0; }
.login-main .login-bottom .center .item .icon-4 {
    background: url(/images/icon-login.png) no-repeat 0 -43px;
    position: absolute; right: -10px; cursor: pointer;
}
.login-main .login-bottom .center .item .icon-5 {
    background: url(/images/icon-login.png) no-repeat -55px -43px;
}

/* 验证码图片 */
.login-main .login-bottom .center .item .validateImg {
    position: absolute;
    right: 1px;
    cursor: pointer;
    height: 38px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
}

/* 记住登录 / 忘记密码 */
.login-main .login-bottom .tip {
    clear: both;
    height: 16px; line-height: 16px;
    width: 300px;
    margin: 0 auto;
}
.login-main .login-bottom .tip .forget-password {
    color: #1E9FFF;
    text-decoration: none;
    position: absolute;
    right: 52px;
    font-size: 13px;
}
.login-main .login-bottom .tip .forget-password:hover {
    text-decoration: underline;
}

/* 登录按钮 */
.login-main .login-bottom .login-btn {
    width: 300px;
    height: 44px;
    background: linear-gradient(135deg, #1a365d 0%, #1E9FFF 100%);
    border-radius: 8px;
    margin: 28px auto 0;
    text-align: center;
    line-height: 44px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    border: none;
    transition: opacity .2s, transform .1s;
}
.login-main .login-bottom .login-btn:hover {
    opacity: .9;
}
.login-main .login-bottom .login-btn:active {
    transform: scale(0.98);
}

/* 页脚 */
.footer {
    left: 0; bottom: 0;
    color: rgba(255,255,255,.7);
    width: 100%;
    position: absolute;
    text-align: center;
    line-height: 30px;
    padding-bottom: 10px;
    font-size: 13px;
}
.footer a, .footer span { color: rgba(255,255,255,.7); }
.footer a:hover { color: #fff; }
.padding-5 { padding: 5px !important; }

/* 响应式 */
@media screen and (max-width: 428px) {
    .login-main { width: 340px !important; }
    .login-main .login-top { width: 340px !important; }
    .login-main .login-bottom { width: 340px !important; }
    .login-main .login-bottom .center { width: 260px; }
    .login-main .login-bottom .center .item { width: 260px; }
    .login-main .login-bottom .center .item input { width: 200px; }
    .login-main .login-bottom .login-btn { width: 260px; }
    .login-main .login-bottom .tip { width: 260px; }
}
