/* 登录和注册页面样式 */

/* 认证页面容器 */
.auth-container {
    display: flex;
    gap: 30px;
    margin: 30px 0 50px;
}

/* 认证框 */
.auth-box {
    flex: 2;
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    padding: 40px;
}

.register-box {
    flex: 3;
}

/* 认证侧边栏 */
.auth-side {
    flex: 1;
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.register-side {
    flex: 2;
}

/* 认证头部 */
.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.auth-header p {
    color: var(--light-text);
    font-size: 16px;
}

/* 认证标签页 */
.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.auth-tabs .tab {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    position: relative;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-tabs .tab.active {
    color: var(--primary-color);
}

.auth-tabs .tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.auth-tabs .tab.active::after {
    transform: scaleX(1);
}

/* 认证表单 */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-text);
}

.input-with-icon input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.input-with-icon input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--light-text);
    width: 32px;
}

/* 表单选项 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input[type="checkbox"] {
    margin-right: 8px;
}

.forgot-password {
    color: var(--primary-color);
    font-size: 14px;
}

/* 验证码组 */
.captcha-group {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.captcha-input {
    flex: 1;
}

.captcha-input input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
}

.captcha-image {
    flex: 0 0 130px;
}

.captcha-image img {
    height: 45px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    vertical-align: middle;
}

.refresh-captcha {
    font-size: 12px;
    color: var(--primary-color);
    margin-left: 5px;
    vertical-align: middle;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.primary-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: #0056b3;
}

/* 短信验证码组 */
.sms-code-group {
    display: flex;
    gap: 15px;
}

.sms-code-group .input-with-icon {
    flex: 1;
}

.send-code-btn {
    flex: 0 0 120px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 0 15px;
    font-size: 14px;
    border: 1px solid var(--border-color);
}

.send-code-btn:hover {
    background-color: #e6f2ff;
}

.send-code-btn.disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: default;
}

/* 认证页脚 */
.auth-footer {
    margin-top: 30px;
    text-align: center;
}

.other-actions {
    margin-bottom: 20px;
}

.register-link, .login-link {
    color: var(--primary-color);
    font-weight: 500;
    margin-left: 5px;
}

/* 社交登录 */
.social-login, .social-signup {
    margin-top: 20px;
}

.social-login-text {
    position: relative;
    margin-bottom: 20px;
}

.social-login-text::before,
.social-login-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 25%;
    height: 1px;
    background-color: var(--border-color);
}

.social-login-text::before {
    left: 0;
}

.social-login-text::after {
    right: 0;
}

.social-login-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 22px;
    transition: all 0.3s ease;
}

.social-icon.wechat {
    background-color: #07C160;
    color: white;
}

.social-icon.qq {
    background-color: #12B7F5;
    color: white;
}

.social-icon.weibo {
    background-color: #E6162D;
    color: white;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 宣传内容 */
.promo-content {
    text-align: center;
}

.promo-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.promo-content p {
    color: var(--light-text);
    margin-bottom: 25px;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: left;
}

.benefits-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.benefits-list li i {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 18px;
}

.promo-image {
    margin-top: 20px;
}

.promo-image img {
    max-width: 100%;
    border-radius: 10px;
}

/* 注册特定样式 */
.required {
    color: #f44336;
}

.form-tip {
    font-size: 12px;
    color: var(--light-text);
    margin-top: 5px;
}

.agreement-check {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.agreement-check input[type="checkbox"] {
    margin-right: 8px;
}

.agreement-check a {
    color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .auth-container {
        flex-direction: column;
    }
    
    .auth-side {
        padding: 30px;
    }
    
    .benefits-list {
        columns: 2;
    }
}

@media (max-width: 768px) {
    .auth-box {
        padding: 30px 20px;
    }
    
    .sms-code-group {
        flex-direction: column;
    }
    
    .send-code-btn {
        flex: none;
    }
    
    .captcha-group {
        flex-direction: column;
    }
    
    .captcha-image {
        flex: none;
    }
    
    .benefits-list {
        columns: 1;
    }
}

/* 表单错误样式 */
.error-field {
    border-color: #f44336 !important;
}

.error-message {
    color: #f44336;
    font-size: 12px;
    margin-top: 5px;
} 