﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

img {
    border: none;
}

ul,
ol,
li {
    list-style: none;
}

html {
    font-size: 13.33333333vw;
    width: 100%;
}

body {
    width: 100%;
    font-size: .22rem;
    font-family: '微软雅黑', 'Heiti SC';
    background: #fff;
}

html,
body {
    position: relative;
    overflow: hidden;
    overflow-y: auto;
}

/* 登录容器 */
.login-container {
    width: 100%;
    min-height: 100vh;
    padding: .6rem .4rem .4rem;
    background: #fff;
}

/* Logo区域 */
.logo-area {
    text-align: center;
    height: .6rem;
    display: flex;
    align-items: center;
    justify-content: center;
   
}

.logo-img {
    width: 1.2rem;
   
    
}

/* 顶部区域 */
.top-con {
    text-align: center;
    padding: .3rem 0 .3rem;
}

/* 主标题：工控网 */
.top-con > div {
    font-size: .36rem;
    font-weight: bold;
    color: #333;
    letter-spacing: .02rem;
}

/* 副标题：欢迎登录（与主标题同行） */
.top-con > div p {
    display: inline;
    font-size: .36rem;
    font-weight: normal;
    color: #4A90D9;
    margin-left: .08rem;
}

/* 副标语 */
.top-con > p {
    margin-top: .12rem;
    font-size: .22rem;
    color: #999;
    letter-spacing: .01rem;
}

/* Tab切换 */
.tab-wrap {
    display: flex;
    position: relative;
    margin: .3rem 0;
    padding: .06rem;
    background: #fff;
    border-radius: .1rem;
    box-shadow: 0 .06rem .2rem rgba(0, 0, 0, .12);
}

.tab-item {
    flex: 1;
    text-align: center;
    font-size: .3rem;
    color: #686868;
    padding: .18rem 0;
    cursor: pointer;
    border-radius: .08rem;
    transition: all .3s;
}

.tab-item.tab-active {
    color: #fff;
    font-weight: bold;
    background: linear-gradient(90deg, #4A90D9 0%, #6FB1E8 100%);
    box-shadow: 0 .04rem .12rem rgba(74, 144, 217, .35);
}

.tab-line {
    display: none;
}

/* 表单区域 */
.form-wrap {
    padding: .2rem 0;
}

/* 输入框组 */
.input-group {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: .08rem;
    margin-bottom: .24rem;
    height: .88rem;
    padding: 0 .2rem;
    border: 1px solid #ddd;
    transition: border-color .3s;
}

.input-group:focus-within {
    border-color: #4A90D9;
}

/* 输入图标 */
.input-icon {
    width: .4rem;
    height: .4rem;
    margin-right: .16rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.icon-user {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23999' d='M12 12c2.7 0 4.8-2.1 4.8-4.8S14.7 2.4 12 2.4 7.2 4.5 7.2 7.2 9.3 12 12 12zm0 2.4c-3.2 0-9.6 1.6-9.6 4.8v1.2c0 .66.54 1.2 1.2 1.2h16.8c.66 0 1.2-.54 1.2-1.2v-1.2c0-3.2-6.4-4.8-9.6-4.8z'/%3E%3C/svg%3E");
}

.icon-pwd {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23999' d='M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z'/%3E%3C/svg%3E");
}

.icon-phone {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23999' d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
}

.icon-code {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23999' d='M20 2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z'/%3E%3C/svg%3E");
}

/* 输入框 */
.input-field {
    flex: 1;
    height: .6rem;
    border: none;
    outline: none;
    background: transparent;
    font-size: .28rem;
    color: #333;
    font-family: '微软雅黑', 'Heiti SC';
}

.input-field::placeholder {
    color: #999;
}

/* 验证码输入行 */
.input-group-code {
    position: relative;
}

.input-code {
    flex: unset;
    width: 2.4rem;
}

.get-code-btn {
    flex-shrink: 0;
    margin-left: auto;
    font-size: .22rem;
    color: #4A90D9;
    padding: .08rem .16rem;
    border: 1px solid #4A90D9;
    border-radius: .06rem;
    cursor: pointer;
    white-space: nowrap;
    background: #fff;
    box-shadow: 0 .04rem .12rem rgba(74, 144, 217, .25);
    transition: all .3s;
}

.get-code-btn:active {
    box-shadow: 0 .02rem .06rem rgba(74, 144, 217, .2);
}

.get-code-btn.disabled {
    color: #ccc;
    border-color: #ddd;
    cursor: not-allowed;
}

/* 图形验证码 */
.input-group-captcha {
    position: relative;
}

.input-captcha-text {
    flex: unset;
    width: 3rem;
}

.input-captcha-text::placeholder {
    color: #999;
}

.captcha-img {
    height: .6rem;
    margin-left: auto;
    cursor: pointer;
    flex-shrink: 0;
}

.icon-captcha {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23999' d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
}

/* 登录按钮 */
.login-btn {
    width: 100%;
    height: .88rem;
    line-height: .88rem;
    text-align: center;
    background: linear-gradient(90deg, #4A90D9 0%, #6FB1E8 100%);
    color: #fff;
    font-size: .32rem;
    font-weight: bold;
    border-radius: .12rem;
    margin-top: .3rem;
    cursor: pointer;
    letter-spacing: .1rem;
    box-shadow: 0 .08rem .24rem rgba(74, 144, 217, .4);
    transition: opacity .3s, box-shadow .3s, transform .15s;
}

.login-btn:active {
    opacity: .9;
    box-shadow: 0 .04rem .12rem rgba(74, 144, 217, .3);
    transform: scale(.97);
}

/* 自动登录 / 找回密码 / 快速注册 */
.extra-links {
    padding: .3rem 0 .2rem;
    font-size: .24rem;
    color: #686868;
}

.extra-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .1rem .05rem;
}

.extra-row:last-child {
    justify-content: center;
}

.auto-login-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.auto-login-check {
    width: .28rem;
    height: .28rem;
    margin-right: .1rem;
    accent-color: #4A90D9;
    cursor: pointer;
}

.auto-login-text {
    font-size: .22rem;
    color: #686868;
}

.no-account {
    font-size: .22rem;
    color: #999;
}

/* 立即注册按钮 */
#btnRegister {
    display: inline-block;
    margin-left: .1rem;
    padding: .08rem .28rem;
    font-size: .24rem;
    color: #4A90D9;
    font-weight: bold;
    border: 1px solid #4A90D9;
    border-radius: .08rem;
    transition: opacity .3s, box-shadow .3s;
}

#btnRegister:active {
    opacity: .7;
}

.link-item {
    cursor: pointer;
    transition: color .3s;
    text-decoration: none;
    color: inherit;
    font-size: .22rem;
}

.link-item:active {
    color: #4A90D9;
}

/* 忘记密码 */
#btnForgotPwd {
    color: #4A90D9;
}

/* 第三方登录 */
.third-login {
    margin-top: .4rem;
    padding-bottom: .3rem;
}

.third-title {
    text-align: center;
    font-size: .22rem;
    color: #999;
    position: relative;
    margin-bottom: .3rem;
}

.third-title span {
    position: relative;
    padding: 0 .3rem;
    background: #fff;
    z-index: 1;
}

.third-title::before {
    content: '';
    position: absolute;
    top: 50%;
    left: .4rem;
    right: .4rem;
    height: 1px;
    background: #ddd;
}

.third-icons {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
}

.third-item {
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.third-icon {
    display: block;
    width: .8rem;
    height: .8rem;
    margin: 0 auto .1rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.icon-qq {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Crect width='100' height='100' rx='20' fill='%2312B7F5'/%3E%3Cpath fill='%23fff' d='M50 24c-8.3 0-15 6.3-15 14.1 0 3.4 1.2 6.5 3.1 9-1.6 2.5-2.6 5.5-2.6 8.7 0 3.3 1.1 6.3 3 8.7-1.1 4.2-3.1 8-5.6 10.7-.4.4-.2 1 .3 1.1 3.6.7 7.4.4 10.6-.6 1.8 1.4 4.4 2.3 7.2 2.3s5.4-.9 7.2-2.3c3.2 1 7 .7 10.6.6.5-.1.7-.7.3-1.1-2.5-2.7-4.5-6.5-5.6-10.7 1.9-2.4 3-5.4 3-8.7 0-3.2-1-6.2-2.6-8.7 1.9-2.5 3.1-5.6 3.1-9 0-7.8-6.7-14.1-15-14.1z'/%3E%3C/svg%3E");
}

.icon-wechat {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Crect width='100' height='100' rx='20' fill='%2309BB07'/%3E%3Cpath fill='%23fff' d='M46 28c-12.7 0-23 8.6-23 19.2 0 6.1 3.3 11.5 8.5 15.1l-2.1 6.4c-.2.6.5 1.1 1 .7l7.2-4.3c2.6.7 5.4 1.1 8.4 1.1.9 0 1.8 0 2.7-.1-1-2.5-1.5-5.2-1.5-8 0-10.4 9.4-18.8 21-18.8.3 0 .6 0 .9.1C66.3 34.1 57 28 46 28zm-8.5 9.5c1.4 0 2.5 1.1 2.5 2.5s-1.1 2.5-2.5 2.5-2.5-1.1-2.5-2.5 1.1-2.5 2.5-2.5zm17 0c1.4 0 2.5 1.1 2.5 2.5s-1.1 2.5-2.5 2.5-2.5-1.1-2.5-2.5 1.1-2.5 2.5-2.5z'/%3E%3Cpath fill='%23fff' d='M78 53.8c0-8.8-8.2-15.9-18.3-15.9S41.4 45 41.4 53.8 49.6 69.7 59.7 69.7c2.4 0 4.7-.4 6.8-1l5.5 3.3c.4.2.9-.1.7-.5l-1.6-4.9c4-2.8 6.6-7 6.6-11.6l.3-.2z'/%3E%3C/svg%3E");
}

.third-item p {
    font-size: .2rem;
    color: #686868;
    margin-top: .04rem;
}

/* 底部提示 */
.bottom-notice {
    text-align: center;
    font-size: .2rem;
    color: #999;
    padding: .3rem 0 .2rem;
}
