@charset "utf-8";
/* =============================================================================
   登录页样式（设计规范：主色 #4899FB，圆角 12/6，间距 8 的倍数）
   ========================================================================== */

.login-bg {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: #eef2f7 url(../images/background.jpg) no-repeat center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* 有自定义背景图时叠加一层浅色蒙版，保证表单可读 */
.login-bg::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(245, 247, 250, .55);
    pointer-events: none;
}

.login {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: 400px;
    max-width: calc(100% - 32px);
    padding: 36px 36px 28px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(16, 24, 40, .12), 0 2px 6px rgba(16, 24, 40, .06);
}

.login .message {
    margin: 0 0 6px;
    padding: 0;
    background: none;
    color: #1f2a37;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: .5px;
}

.login .sub-message {
    margin-bottom: 24px;
    color: #8a94a6;
    font-size: 13px;
}

.login input[type=text],
.login input[type=password],
.login input[type=email],
.login input[type=file],
.login select {
    box-sizing: border-box;
    width: 100%;
    height: 42px;
    padding: 0 14px;
    font-size: 14px;
    color: #1f2a37;
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: 6px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.login input[type=text]::placeholder,
.login input[type=password]::placeholder {
    color: #b0b8c4;
}

.login input[type=text]:hover,
.login input[type=password]:hover,
.login input[type=email]:hover {
    border-color: #bcdcff;
}

.login input[type=text]:focus,
.login input[type=password]:focus,
.login input[type=email]:focus,
.login select:focus {
    border-color: #4899fb;
    box-shadow: 0 0 0 3px rgba(72, 153, 251, .12);
}

.login input[type=submit],
.login input[type=button] {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 44px;
    padding: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 44px;
    color: #ffffff;
    background-color: #4899fb;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    outline: none;
    transition: background-color .2s, box-shadow .2s;
}

.login input[type=submit]:hover,
.login input[type=button]:hover {
    background-color: #2f86f3;
    box-shadow: 0 4px 12px rgba(72, 153, 251, .28);
}

.login input[type=submit]:active,
.login input[type=button]:active {
    background-color: #1f74dd;
}

.login .field-tip {
    display: block;
    margin: -8px 0 14px;
    color: #8a94a6;
    font-size: 12px;
}

.login hr {
    border: none;
    margin: 0;
    padding: 0;
}

.login hr.hr15 { height: 16px; }
.login hr.hr20 { height: 20px; }

@media screen and (max-width: 480px) {
    .login { padding: 28px 20px 20px; }
    .login .message { font-size: 19px; }
}
