.loginmain {
    position: relative;
}

.loginmain>img {
    width: 100%;
}

.loginbox {
    display: flex;
    justify-content: flex-end;
}

.loginmain>div {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    margin: auto;
    transform: translateY(-50%);
}

.loginbox>div {
    padding: 50px 30px;
    background-color: #fff;
    border-radius: var(--radius);
    display: table;
    position: relative;
}

.login>p {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 14px;
    text-align: center;
}

.logintype {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 20px 0;
}

.logintype span {
    cursor: pointer;
    user-select: none;
}

.logintype span.active {
    color: var(--primary);
}

.login input {
    width: 350px;
    display: block;
    height: 45px;
    border-radius: 6px;
    padding: 0 10px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    box-sizing: border-box;
    outline: none;
}

.login .code,
.phonelogin .code {
    width: 350px;
    box-sizing: border-box;
}

.login .code input,
.login .code input[type="text"],
.phonelogin .code input,
.phonelogin .code input[type="text"] {
    width: auto;
    flex: 1;
    height: 100%;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    outline: none;
}

.pwdlogin button {
    background-color: var(--primary);
    width: 100%;
    border-radius: var(--radius);
    height: 40px;
    color: #fff;
    border: none;
    cursor: pointer;
    margin-bottom: 10px;
}

.pwdlogin .forget {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.pwdlogin .forget span {
    color: var(--primary);
    cursor: pointer;
}

.phonelogin input[type="text"],
.phonelogin>input {
    width: 350px;
    display: block;
    height: 45px;
    border-radius: 6px;
    padding: 0 10px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}

.code {
    height: 45px;
    border-radius: 6px;
    padding: 0 10px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    width: 350px;
}

.code span {
    cursor: pointer;
    font-size: 14px;
}

.code input {
    flex: 1;
    height: 100%;
    border: none;
    margin: 0;
}

.codesend {
    color: #999;
    white-space: nowrap;
    cursor: pointer;
}

.codesend:hover {
    color: var(--primary);
}

.coderestart {
    display: none;
    white-space: nowrap;
    color: #999;
    font-size: 14px;
}

.phonelogin button {
    background-color: var(--primary);
    width: 100%;
    border-radius: var(--radius);
    height: 40px;
    color: #fff;
    border: none;
    cursor: pointer;
    margin-bottom: 10px;
}

.phonelogin>p {
    font-size: 14px;
    text-align: center;
    margin-top: 10px;
}

.phonelogin>p span {
    cursor: pointer;
    color: var(--primary)
}

.register>p:nth-child(1) {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 14px;
    text-align: center;
    margin-bottom: 30px;
}

.register form,
#regForm {
    width: 350px;
}

.register input[type="text"],
.register input[type="password"],
.register input[type="tel"],
.registerover>input {
    width: 350px;
    display: block;
    height: 45px;
    border-radius: 6px;
    padding: 0 10px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    box-sizing: border-box;
    outline: none;
}

.register .code {
    width: 350px;
    box-sizing: border-box;
}

.register .code input,
.register .code input[type="text"] {
    width: auto;
    flex: 1;
    height: 100%;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    outline: none;
}

.read {
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.read img {
    height: 14px;
}

.read a {
    color: var(--primary)
}

.read span {
    font-size: 10px;
    height: 16px;
    width: 16px;
    border: 1px solid var(--gray);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    cursor: pointer;
    align-items: center;
    user-select: none;
}

.read span.active {
    background-color: #7eb6e8;
    color: #fff;
    border-color: #7eb6e8;
}

.register button {
    background-color: var(--primary);
    width: 100%;
    border-radius: var(--radius);
    height: 40px;
    color: #fff;
    border: none;
    cursor: pointer;
    margin: 30px 0 10px 0;
}

.haveuser {
    text-align: center;
    font-size: 14px;
}

.haveuser span,
.haveuser a {
    color: var(--primary);
    cursor: pointer;
}

.errmsg {
    width: 350px;
    background-color: #FFE5E3;
    line-height: 1.8;
    font-size: 14px;
    text-align: center;
    margin-top: 15px;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
}

.errmsg span {
    color: #D41212;
}

.errmsg img {
    height: 14px;
}
.sucmsg{
    background-color: #E3FFEC;
}
.sucmsg span{
    color:#0E9E3E;
}
.registerover{
    display: none;
}
.registerover>p:nth-child(1) {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 14px;
    text-align: center;
    margin-bottom: 30px;
}

.registerover select{
    width: 350px;
    height: 45px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    display: block;
    box-sizing: border-box;
    padding: 0 10px;
    margin-bottom: 20px;
    background: #fff;
}
.registerover button{
     background-color: var(--primary);
    width: 100%;
    border-radius: var(--radius);
    height: 40px;
    color: #fff;
    border: none;
    cursor: pointer;
    margin: 30px 0 10px 0;
}
@media (max-width:768px) {
    .loginmain>div{
        transform: none;
        position: static;
    }
    .loginmain>img{
        display: none;
    }
    .loginbox>div{
        padding: 15px;
        width: 100%;
        box-sizing: border-box;
    }
    .login input,
    .phonelogin>input,
    .code,
    .register form,
    #regForm,
    .register input[type="text"],
    .register input[type="password"],
    .register input[type="tel"],
    .registerover>input,
    .registerover select,
    .errmsg {
        width: 100%;
    }
}