* {
    margin: 0;
    padding: 0;
}

.login_page {
    width: 100%;
    min-height: 100vh;
    background: url(../img/uesr_bg.png) no-repeat center center;
    background-size: cover;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.login_page::before{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(102.5deg, rgba(255, 255, 255, 0.2) 9.35%, rgba(125, 201, 245, 0.08) 62.86%);
    pointer-events: none;
}
.login_page .main{
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}


.login_logo {
    margin-top: 0.43rem;
    width: 3.29rem;
}

.login_logo img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.login_card {
    width: 5.42rem;
    height: auto;
    padding: 0.6rem 0.66rem 0.45rem;
    border-radius: 0.1rem;
    background: #fff;
    overflow: hidden;
}

.login_card h1 {
    font-size: 0.24rem;
    line-height: 1.333;
    font-weight: 400;
    color: #333;
    text-align: center;
}

.login_btn{
    width: 100%;
    margin-top: 0.5rem;
    border-bottom: 0.01rem solid #F0F0F0;
    display: flex;
    align-items: flex-end;
}

.btn_tab{
    appearance: none;
    background: transparent;
    border: 0;
    width: 50%;
    border-bottom: 0.02rem solid transparent;
    padding-bottom: 0.2rem;
    text-align: center;
    font-size: 0.16rem;
    line-height: 1.3;
    font-weight: 400;
    color: #333;
    cursor: pointer;
    transition: var(--s_tran);
}

.btn_tab.active{
    border-bottom-color: #0063C4;
}

.login_code{
    width: 100%;
}

.login_box{
    width: 100%;
    margin-top: 0.35rem;
    display: none;
}

.login_box.active{
    display: block;
}

.login_item{
    width: 100%;
    display: flex;
    align-items: stretch;
    position: relative;
    justify-content: space-between;
}

.login_item + .login_item{
    margin-top: 0.2rem;
    margin-bottom: 0.2rem;
}

.login_item::before{
    content: "";
    position: absolute;
    width: 0.22rem;
    height: 0.22rem;
    left: 0.19rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.login_box .login_item_phone::before{
    background: url(../img/login_phone.png) no-repeat center center;
    background-size: contain;
}
.login_box .login_item_code::before{
    background: url(../img/login_code.png) no-repeat center center;
    background-size: contain;
}
.login_box .login_item_user::before{
    background: url(../img/login_user.png) no-repeat center center;
    background-size: contain;
}
.login_box .login_item_pwd::before{
    background: url(../img/login_code.png) no-repeat center center;
    background-size: contain;
}
.login_box .login_item_pic::before{
    background: url(../img/login_pic.png) no-repeat center center;
    background-size: contain;
}
.login_item input{
    width: 100%;
    padding: 0.14rem 0.13rem 0.13rem 0.54rem;
    outline: none;
    background: transparent;
    font-size: 0.16rem;
    line-height: 1.3;
    color: #333;
    border: 0.01rem solid #DEDEDE;
    border-radius: 0.05rem;
}
.login_item input::placeholder{
    color: #CCC;
}
.login_item:focus-within,
.login_item.has-value{
    border-color: #0063C4;
}
.login_item button{
    border: none;
    background: transparent;
    font-family: "Microsoft YaHei", "SourceHanSansCN", sans-serif;
    font-size: 0.16rem;
    line-height: 1.5;
    color: #0063C4;
    white-space: nowrap;
    position: absolute;
    right: 0.1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}
.login_item_code input{
    padding-right: 1.12rem;
}
.login_box .login_item_pic input{
    width: calc(100% - 1.32rem);
}
.look_password{
    width: 0.22rem;
    height: 0.22rem;
    background: url(../img/password1.png) no-repeat center center;
    background-size: contain;
    border-radius: 50%;
    position: absolute;
    right: 0.2rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}
.look_password.active{
    background: url(../img/password2.png) no-repeat center center;
    background-size: contain;
}



.code_img{
    width: 1.24rem;
    height: auto;
    border-radius: 0.05rem;
    border: 0.01rem solid #DEDEDE;
}
.code_img::before{
    content: "8A5K";
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.16rem;
    line-height: 1;
    letter-spacing: 0.02rem;
    color: #0063C4;
}


.login_agree{
    width: fit-content;
    margin-top: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.12rem;
    font-size: 0.16rem;
    line-height: 1.5;
    color: #707070;
}
.login_agree input{
    width: 0.16rem;
    height: 0.16rem;
    margin: 0;
    flex-shrink: 0;
    accent-color: #0063C4;
}

.login_agree a,
.login_url a{
    display: inline;
    color: #0063C4;
}


.login_submit{
    width: 100%;
    height: 0.44rem;
    margin-top: 0.18rem;
    border: none;
    border-radius: 0.03rem;
    background: #0063C4;
    font-size: 0.18rem;
    line-height: 1.5;
    color: #fff;
    text-align: center;
    cursor: pointer;
}

.login_submit:hover{
    background: #0055A8;
}

.login_url{
    margin-top: 0.26rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.16rem;
    line-height: 1.5;
    color: #666;
}

.login_forget{
    display: none !important;
}

.login_card.password .login_forget{
    display: inline !important;
}

.login_register{
    color: #666;
    margin: 0 0 0 auto;
}






/* 用户注册 */
.register_card{
    height: auto;
    padding-bottom: 0.8rem;
}

.register_form{
    width: 100%;
    margin-top: 0.5rem;
}

.register_item{
    width: 100%;
    height: 0.44rem;
    border: 0.01rem solid #D7D7D7;
    border-radius: 0.03rem;
    background: #fff;
    display: flex;
    align-items: center;
    position: relative;
}

.register_item + .register_item{
    margin-top: 0.25rem;
}

.register_item span{
    width: 0.9rem;
    height: 0.18rem;
    border-right: 0.01rem solid #E6E6E6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.14rem;
    line-height: 1.3;
    color: #666;
}

.register_item input{
    min-width: 0;
    height: 100%;
    flex: 1;
    padding: 0 0.17rem;
    border: none;
    outline: none;
    background: transparent;
    font-family: "Microsoft YaHei", "SourceHanSansCN", sans-serif;
    font-size: 0.14rem;
    line-height: 1.3;
    color: #333;
}

.register_item input::placeholder{
    color: #D7D7D7;
}

.register_item:focus-within,
.register_item.has-value{
    border-color: #0063C4;
}

.register_code input{
    padding-right: 1.05rem;
}

.register_code button{
    border: none;
    background: transparent;
    font-family: "Microsoft YaHei", "SourceHanSansCN", sans-serif;
    font-size: 0.14rem;
    line-height: 1.3;
    color: #0063C4;
    white-space: nowrap;
    position: absolute;
    right: 0.13rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.register_agree{
    width: fit-content;
    margin-top: 0.26rem;
    display: flex;
    align-items: center;
    gap: 0.12rem;
    font-size: 0.16rem;
    line-height: 1.5;
    color: #707070;
}

.register_agree input{
    width: 0.16rem;
    height: 0.16rem;
    margin: 0;
    flex-shrink: 0;
    accent-color: #0063C4;
}

.register_agree a{
    display: inline;
    color: #0063C4;
}

.register_submit{
    width: 100%;
    height: 0.44rem;
    margin-top: 0.18rem;
    border: none;
    border-radius: 0.03rem;
    background: #0063C4;
    font-family: "Microsoft YaHei", "SourceHanSansCN", sans-serif;
    font-size: 0.18rem;
    line-height: 1.5;
    color: #fff;
    text-align: center;
    cursor: pointer;
}

.register_submit:hover{
    background: #0055A8;
}

.register_login{
    width: fit-content;
    margin: 0.2rem auto 0;
    display: block;
    border-bottom: 0.01rem solid #017AEF;
    font-size: 0.14rem;
    line-height: 1.45;
    color: #017AEF;
}







/* 重置密码 */
.reset_card{
    height: auto;
    padding-bottom: 0.96rem;
}

.reset_form{
    width: 100%;
    margin-top: 0.5rem;
}

.reset_agree{
    margin-top: 0.26rem;
}

.reset_submit{
    margin-top: 0.3rem;
    letter-spacing: 0.08rem;
    text-indent: 0.08rem;
}

.reset_login{
    width: fit-content;
    margin: 0.2rem auto 0;
    display: flex;
    align-items: center;
    gap: 0.08rem;
    border-bottom: 0.01rem solid #017AEF;
    font-size: 0.14rem;
    line-height: 1.45;
    color: #017AEF;
    position: relative;
}

.reset_login i{
    width: 0.18rem;
    height: 0.12rem;
    background: url(../img/reset_login.png) no-repeat center center;
    background-size: contain;
    display: block;
}






@media (max-width: 1024px) {
    .login_page .main{
        width: 94%;
        flex-direction: column;
        align-items: center;
    }

    .login_logo{
        margin: 0 auto 20px;
    }
}

@media (max-width: 768px) {


    .login_card h1{
        font-size: 18px;
    }

    .login_card{
        width: 100%;
        height: auto;
        min-height: 5.2rem;
        padding: 30px;
    }

    .btn_tab{
        font-size: 16px;
    }
    .login_item input,
    .login_item button,
    .login_agree,
    .login_url{
        font-size: 14px;
    }
    .login_agree input,
    .register_agree input{
        width: 14px;
        height: 14px;
    }

    .login_submit,
    .register_submit{
        height: auto;
        font-size: 14px;
        padding: 6px 0;
        margin: 16px 0;
    }
    .login_box .login_item_pic input{
        width: calc(100% - 96px);
    }
    .code_img{
        width: 90px;
        font-size: 14px;
    }




    .register_item{
        height: 34px;
    }
    .register_item span{
        font-size: 14px;
        width: 80px;
    }
    .register_item input,
    .register_code button,
    .register_agree,
    .register_login,
    .reset_login{
        font-size: 14px;
    }

    .reset_login i{
        width: 18px;
        height: 12px;
    }
}






