/* 登录和注册页面特定样式 */
.message-box {
  padding: 12px 15px;
  border-radius: 4px;
  margin-bottom: 15px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.message-box.error {
  background-color: #fff2f0;
  border: 1px solid #ffccc7;
  color: #ff4d4f;
}

.message-box.success {
  background-color: #f6ffed;
  border: 1px solid #b7eb8f;
  color: #52c41a;
}

.message-box.loading {
  background-color: #e6f7ff;
  border: 1px solid #91d5ff;
  color: #1890ff;
}

.message-box.fade-out {
  opacity: 0;
}

/* 密码强度指示器 */
.password-strength {
  margin-top: 5px;
}

.strength-bar {
  height: 4px;
  width: 0;
  background-color: #eee;
  border-radius: 2px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-bar.empty {
  background-color: #eee;
}

.strength-bar.weak {
  background-color: #ff4d4f;
}

.strength-bar.medium {
  background-color: #faad14;
}

.strength-bar.strong {
  background-color: #52c41a;
}

.strength-text {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}

/* 密码匹配指示器 */
.password-match {
  margin-top: 5px;
  font-size: 12px;
}

.password-match.match {
  color: #52c41a;
}

.password-match.mismatch {
  color: #ff4d4f;
}

/* 模态框样式 */
.modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 25px;
  width: 100%;
  max-width: 500px;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #888;
}

.close-modal:hover {
  color: #333;
}

/* 验证码输入框 */
.verification-input {
  display: flex;
  align-items: center;
  gap: 10px;
}

.verification-input input {
  flex: 1;
}

.verification-input button {
  white-space: nowrap;
  padding: 0 12px;
  height: 40px;
}

/* 单选按钮组样式 */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 5px;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

/* 社交登录按钮的额外样式 */
.social-login-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 10px;
}

.social-btn {
  flex: 1;
  max-width: 150px;
  padding: 10px 15px;
  border-radius: 4px;
  border: none;
  color: white;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.3s ease;
}

.social-btn:hover {
  opacity: 0.9;
}

.social-btn.wechat {
  background-color: #07c160;
}



/* 一些响应式调整 */
@media (max-width: 768px) {
  .verification-input {
    flex-direction: column;
    align-items: stretch;
  }
  
  .verification-input button {
    width: 100%;
  }
  
  .social-login-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .social-btn {
    width: 100%;
    max-width: none;
  }
} 