/**
 * 新注册页样式
 * 与登录页保持一致的设计风格
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 10px;
}

html::before {
    content: '';
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: -1;
    background: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%) no-repeat;
}

::selection {
    color: #fff;
    background-color: rgb(144,129,241);
}

.register-box {
    display: flex;
    overflow: hidden;
    width: 90rem;
    height: 65rem;
    background-color: rgba(255,255,255,60%);
    border-radius: 1.5rem;
    margin: 5% auto;
    box-shadow: 0 0 1rem 0.2rem rgb(0 0 0 / 10%);
}

.register-box .register-left {
    position: relative;
    width: 35%;
    height: 100%;
    background-color: skyblue;
}

.register-box .register-left::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url(../images/login-left.png);
    background-size: cover;
    opacity: 80%;
}

.register-box .register-right {
    display: flex;
    width: 65%;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    padding: 20px 0;
}

.register-box .register-right h4 {
    color: rgb(144,129,241);
    font-size: 3rem;
    margin-top: 3rem;
}

.register-box .register-right form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.register-box .register-right form .acc {
    outline: none;
    width: 80%;
    height: 4.5rem;
    font-size: 1.5rem;
    margin-top: 2rem;
    padding: 1rem 0 0 1.6rem;
    border: none;
    border-bottom: 1px solid rgb(144,129,241);
    color: rgb(144,129,241);
    background-color: rgba(0,0,0,0);
}

.register-box .register-right form .acc::placeholder {
    color: rgba(144,129,241,0.6);
}

.register-box .register-right form .acc:focus {
    outline: none;
    color: rgb(144,129,241);
    padding: 1rem 0 0 1.6rem;
}

/* 同意条款 */
.agree-box {
    width: 80%;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    font-size: 1.3rem;
    color: #666;
}

.agree-box input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.agree-box a {
    color: rgb(144,129,241);
    text-decoration: none;
}

.agree-box a:hover {
    text-decoration: underline;
}

.register-box .register-right .submit {
    width: 60%;
    height: 4.5rem;
    color: #f6f6f6;
    background-image: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%);
    font-size: 1.6rem;
    border: none;
    border-radius: 0.5rem;
    margin: 3rem 0 0 50%;
    transform: translateX(-50%);
    cursor: pointer;
    transition: all 0.3s;
}

.register-box .register-right .submit:hover {
    box-shadow: 0 0 2rem -0.5rem rgb(0 0 0 / 15%);
    transform: translateX(-50%) translateY(-2px);
}

.register-box .register-fn {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    width: 70%;
}

.register-box .register-fn a {
    font-size: 1.3rem;
    padding: 1rem 2rem;
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.register-box .register-fn a:hover {
    color: rgb(144,129,241);
}

/* 错误提示 */
.error-message {
    width: 80%;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 0.5rem;
    color: #e74c3c;
    font-size: 1.4rem;
    text-align: center;
}

/* 成功提示 */
.success-message {
    width: 80%;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: 0.5rem;
    color: #27ae60;
    font-size: 1.4rem;
    text-align: center;
}

/* QQ邮箱提示 */
.qq-tip {
    width: 80%;
    margin-top: 1rem;
    font-size: 1.2rem;
    color: rgb(144,129,241);
    text-align: left;
}

.qq-tip i {
    margin-right: 5px;
}

/* 响应式设计 */
@media (max-width: 950px) {
    .register-box {
        width: 90%;
        height: auto;
        min-height: 60rem;
        margin: 3% auto;
    }
    
    .register-box .register-left {
        display: none;
    }
    
    .register-box .register-right {
        width: 100%;
    }
}
