/*
 * 后台登录样式
 * 修改说明：美化登录表单（毛玻璃卡片、渐变按钮、输入聚焦动效）
 * Author: 缘境 (yvsm@zunyunkeji.com) QQ:316430983 微信：yvsm316
*/

:root {
    --login-primary: #0aa770;
    --login-primary-dark: #088a5d;
    --login-line: #e6ebf0;
    --login-text: #2c3e50;
    --login-placeholder: #a6aebf;
}

html {
    height: 100%;
}

body {
    font-size: 14px;
    background: url(../images/background.svg) 0% 0% / cover no-repeat, linear-gradient(135deg, #eef2f6 0%, #e8f3ee 100%);
    position: static;
    -webkit-font-smoothing: antialiased;
}

.demo {
    padding-top: 20px;
    text-align: center;
    color: #9abcda !important;
    font-size: 13px;
}

.main-body {
    top: 50%;
    left: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(8, 65, 46, 0.18), 0 4px 12px rgba(0, 0, 0, 0.06);
    animation: login-fade-in .5s ease both;
}

@keyframes login-fade-in {
    from {
        opacity: 0;
        transform: translate(-50%, -46%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.login-main {
    width: 458px;
    position: relative;
    float: left;
}

/* 顶部标题区 */
.login-main .login-top {
    height: 130px;
    background: linear-gradient(135deg, #12b97e 0%, #0aa770 55%, #088a5d 100%);
    border-radius: 14px 14px 0 0;
    font-family: "Helvetica Neue", Helvetica, "PingFang SC", Tahoma, Arial, sans-serif;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #fff;
    line-height: 130px;
    text-align: center;
    overflow: hidden;
    position: relative;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.login-main .login-top .bg1 {
    display: inline-block;
    width: 74px;
    height: 74px;
    background: #fff;
    opacity: .1;
    border-radius: 0 74px 0 0;
    position: absolute;
    left: 0;
    top: 56px;
}

.login-main .login-top .bg2 {
    display: inline-block;
    width: 110px;
    height: 110px;
    background: #fff;
    opacity: .12;
    border-radius: 50%;
    position: absolute;
    right: -24px;
    top: -28px;
}

/* 表单主体 */
.login-main .login-bottom {
    width: 458px;
    background: #fff;
    border-radius: 0 0 14px 14px;
    padding-bottom: 46px;
}

.login-main .login-bottom .center {
    width: 358px;
    margin: 0 auto;
    padding-top: 38px;
    padding-bottom: 6px;
    position: relative;
}

/* 输入项 */
.login-main .login-bottom .center .item {
    width: 358px;
    height: 46px;
    border: 1px solid var(--login-line);
    border-radius: 10px;
    margin-bottom: 22px;
    background: #fafbfc;
    display: flex;
    align-items: center;
    padding: 0 14px;
    position: relative;
    transition: border-color .25s, box-shadow .25s, background .25s;
}

.login-main .login-bottom .center .item:focus-within {
    border-color: var(--login-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(10, 167, 112, 0.12);
}

.login-main .login-bottom .center .item input {
    flex: 1;
    display: inline-block;
    height: 44px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14px;
    letter-spacing: 0;
    color: var(--login-text);
}

.login-main .login-bottom .center .item .icon {
    display: inline-block;
    width: 28px;
    height: 22px;
    flex: 0 0 auto;
}

.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;
    cursor: pointer;
    flex: 0 0 auto;
}

.login-main .login-bottom .center .item .icon-5 {
    background: url(../images/icon-login.png) no-repeat -55px -43px;
}

.login-main .login-bottom .center .item .icon-6 {
    background: url(../images/icon-login.png) no-repeat 0 -93px;
    cursor: pointer;
    flex: 0 0 auto;
}

/* 验证码项 */
.login-main .login-bottom .center #validatePanel {
    width: 358px !important;
    padding-right: 6px;
}

.login-main .login-bottom .center .item .validateImg {
    cursor: pointer;
    height: 38px;
    border: 1px solid var(--login-line);
    border-radius: 6px;
    flex: 0 0 auto;
    margin-left: 8px;
}

/* 保持登录 / 返回首页 */
.login-main .login-bottom .tip {
    clear: both;
    height: 20px;
    line-height: 20px;
    width: 358px;
    margin: 6px auto 0;
    position: relative;
    display: flex;
    align-items: center;
}

.login-main .login-bottom .tip .icon-nocheck {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: solid 1px #c2ccd6;
    position: relative;
    margin-right: 8px;
    cursor: pointer;
    transition: all .2s;
}

.login-main .login-bottom .tip .icon-check {
    margin-right: 8px;
    width: 14px;
    height: 14px;
    border: none;
    border-radius: 3px;
    background: var(--login-primary) url(../images/icon-login.png) no-repeat -111px -48px;
}

.login-main .login-bottom .tip .login-tip {
    font-size: 14px;
    color: #5a6a7a;
    cursor: pointer;
}

.login-main .login-bottom .tip .forget-password {
    letter-spacing: 0;
    color: var(--login-primary);
    text-decoration: none;
    position: absolute;
    right: 0;
    font-size: 14px;
    transition: opacity .2s;
}

.login-main .login-bottom .tip .forget-password:hover {
    opacity: .75;
}

/* 登录按钮 */
.login-main .login-bottom .login-btn {
    width: 358px;
    height: 46px;
    background: linear-gradient(135deg, #12b97e 0%, #0aa770 100%);
    border-radius: 10px;
    margin: 26px auto 0;
    text-align: center;
    line-height: 46px;
    color: #fff;
    font-size: 15px;
    letter-spacing: 2px;
    cursor: pointer;
    border: none;
    box-shadow: 0 8px 18px rgba(10, 167, 112, 0.28);
    transition: transform .15s, box-shadow .25s, filter .25s;
}

.login-main .login-bottom .login-btn:hover {
    filter: brightness(1.04);
    box-shadow: 0 10px 22px rgba(10, 167, 112, 0.36);
}

.login-main .login-bottom .login-btn:active {
    transform: translateY(1px);
    box-shadow: 0 4px 12px rgba(10, 167, 112, 0.3);
}

/* 占位符与自动填充 */
input::-webkit-input-placeholder {
    color: var(--login-placeholder);
}

input::-moz-placeholder {
    color: var(--login-placeholder);
}

input:-ms-input-placeholder {
    color: var(--login-placeholder);
}

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #fafbfc inset !important;
}

.item:focus-within input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
}

/* 页脚 */
.footer {
    left: 0;
    bottom: 0;
    color: #fff;
    width: 100%;
    position: absolute;
    text-align: center;
    line-height: 30px;
    padding-bottom: 10px;
    text-shadow: rgba(0, 0, 0, .25) 0.1em 0.1em 0.2em;
    font-size: 13px;
}

.footer a {
    text-shadow: none;
    font-weight: 600;
}

.footer a, .footer span {
    color: #fff;
}

.padding-5 {
    padding: 5px !important;
}

@media screen and (max-width: 458px) {
    .login-main,
    .login-main .login-top,
    .login-main .login-bottom {
        width: 360px !important;
    }

    .login-main .login-bottom .center,
    .login-main .login-bottom .center .item,
    .login-main .login-bottom .tip,
    .login-main .login-bottom .login-btn {
        width: 300px !important;
    }
}
