/* 注册页面自定义样式 */
.signup__welcome {
    text-align: center;
    margin-bottom: 30px;
}

.signup__welcome h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
}

.signup__welcome p {
    font-size: 16px;
    color: var(--text-secondary);
}

/* 表单样式 */
.signup__section {
    padding-bottom: 15px;
    margin-bottom: 25px;
    border-bottom: solid 2px var(--border-color);
}

.signup__label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.signup__form input.form-control {
    height: 34px;
    padding: 0;
    font-size: 14px;
    font-weight: normal;
    border-radius: 0;
    border: none;
    background-color: transparent;
    color: var(--text-color);
    box-shadow: none;
    width: 100%;
}

/* 表单验证反馈样式 */
.signup__form input.form-control.is-invalid {
    border-bottom: 1px solid #dc3545;
}

.signup__form input.form-control.is-valid {
    border-bottom: 1px solid #28a745;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 5px;
    font-size: 13px;
    color: #dc3545;
}

/* 密码强度指示器样式 */
.message-input {
    position: relative;
}

.message-input__strong {
    position: absolute;
    right: 0;
    top: 8px;
    font-size: 12px;
    font-weight: 600;
}

/* 其他现有样式 */
.signup__tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.signup__tab {
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.signup__tab.active {
    color: var(--text-color-active);
}

.signup__tab.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-image: var(--btn-bg);
}

.signup__tab-content {
    display: none;
}

.signup__tab-content.active {
    display: block;
}

.verification-input {
    position: relative;
}

.verification-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 34px;
    padding: 0 15px;
    background-image: var(--btn-bg);
    border: none;
    color: var(--btn-text);
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.verification-btn:hover {
    background-image: var(--btn-bg);
    color: #ffffff;
}

.verification-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.signup__link {
    color: #f9bc64;
    text-decoration: none;
    transition: all 0.3s ease;
}

.signup__link:hover {
    text-decoration: underline;
}

/* 表单底部按钮样式 */
.signup__btn-create {
    width: 100%;
    margin-top: 20px;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 600;
}

.signup__social {
    margin-top: 40px;
}

.signup__social-divider {
    position: relative;
    text-align: center;
    margin-bottom: 20px;
}

.signup__social-divider:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--border-color);
}

.signup__social-divider span {
    position: relative;
    background-color: var(--body-bg);
    padding: 0 15px;
    font-size: 14px;
    color: var(--text-secondary);
}

.signup__social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.signup__social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 40px;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.signup__social-btn i {
    margin-right: 8px;
    font-size: 18px;
}

.signup__social-btn--wechat {
    background-color: #07C160;
    color: #ffffff;
}

.signup__social-btn--qq {
    background-color: #12B7F5;
    color: #ffffff;
}

.signup__social-btn--weibo {
    background-color: #E6162D;
    color: #ffffff;
}

.signup__social-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* 深色模式适配 */
[data-theme="dark"] .signup__welcome h2 {
    color: var(--text-color);
}

[data-theme="dark"] .signup__tab.active {
    color: #f9bc64;
}

[data-theme="dark"] .verification-btn:hover {
    background-color: #f9bc64;
    color: #222222;
}

[data-theme="dark"] .signup__social-divider span {
    background-color: var(--body-bg);
}

[data-theme="dark"] .invalid-feedback {
    color: #ff6b6b;
}

[data-theme="dark"] .signup__form input.form-control.is-invalid {
    border-bottom: 1px solid #ff6b6b;
}

[data-theme="dark"] .signup__form input.form-control.is-valid {
    border-bottom: 1px solid #51cf66;
}

/* 响应式调整 */
@media only screen and (max-width: 1039px) {
    .signup__welcome h2 {
        font-size: 24px;
    }
    
    .signup__tab {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .verification-input {
        display: flex;
        flex-direction: column;
    }
    
    .verification-btn {
        position: static;
        margin-top: 10px;
        width: 100%;
    }
    
    .signup__social-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .signup__social-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .message-input__strong {
        top: 6px;
    }
}

.password-input {
    position: relative;
}
.message-input__strong {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 2px;
    background-color: #f5f5f5;
}
.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

/* 密码输入框样式 */
.password-input {
    position: relative;
}

.message-input__strong {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 2px;
    background-color: #f5f5f5;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

/* 密码强度指示器样式 */
.password-strength-meter {
    display: flex;
    margin-top: 5px;
    height: 4px;
    width: 100%;
    gap: 2px;
}

.strength-segment {
    flex: 1;
    height: 100%;
    background-color: #e0e0e0;
    transition: background-color 0.3s ease;
}

.strength-segment.active.strength-weak {
    background-color: #ff4d4f; /* 红色 */
}

.strength-segment.active.strength-medium {
    background-color: #faad14; /* 黄色 */
}

.strength-segment.active.strength-strong {
    background-color: #52c41a; /* 绿色 */
}

/* 深色模式适配 */
[data-theme="dark"] .message-input__strong {
    background-color: #333;
    color: #f5f5f5;
}

[data-theme="dark"] .strength-segment {
    background-color: #444;
}

/* 响应式调整 */
@media only screen and (max-width: 1039px) {
    .message-input__strong {
        right: 30px;
    }
}

