/* 弹窗遮罩层样式 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
    display: flex !important; /* 覆盖外部的 .show { display: block !important; } */
}

.popup.register {
  position: relative;
  width: 800px;
  max-width: 90vw;
  max-height: 90vh;
  background: rgba(255, 255, 255, 1);
  border-radius: 12px;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
  margin: auto;
  overflow-y: auto;
}

.popup.register .register_container {
  display: flex;
  width: 100%;
  /* height: 100%; */
}

.popup.register .register_image {
  flex: 0 0 400px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.popup.register .register_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 图片文字覆盖层样式 */
.popup.register .register_image .image_text_overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 40px 30px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 2;
}

.popup.register .register_image .image_text_overlay .overlay_title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  color: rgba(255, 255, 255, 1);
  text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.5);
  margin-bottom: 30px;
  max-width: 80%;
}

.popup.register .register_image .image_text_overlay .overlay_features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.popup.register .register_image .image_text_overlay .feature_item {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 1);
  text-shadow: 0px 1px 4px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
}

.popup.register .register_box {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 600px;
}

.popup.register .register_close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.popup.register .register_close:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.popup.register .register_close > img {
    width: 16px;
    height: 16px;
}

.popup.register .register_box .register_title {
    width: 100%;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0px;
    line-height: 34.75px;
    color: rgba(0, 0, 0, 1);
    text-align: center;
    margin-bottom: 28px;
}

.popup.register .register_box .register_describtion {
    width: 100%;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0px;
    line-height: 20.27px;
    color: rgba(66, 66, 66, 1);
    text-align: center;
    margin-bottom: 28px;
}

.popup.register .register_box .input_box {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-content: flex-start;
    flex-wrap: wrap;
}

.popup.register .register_box .input_box .input_name {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0px;
    line-height: 23.17px;
    color: rgba(0, 0, 0, 1);
    text-align: left;
}

.popup.register .register_box .input_box .input_reqired {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0px;
    line-height: 23.17px;
    margin: 0 2px;
    color: rgba(255, 3, 3, 1);
    text-align: left;
    display: none;
}

.popup.register .register_box .input_box[data-require="1"] .input_reqired {
    display: block;
}

.popup.register .register_box .input_box input {
    width: 100%;
    height: 48px;
    border-radius: 6px;
    background: rgba(248, 248, 248, 1);
    border: 1px solid rgba(0, 0, 0, 0);
    text-indent: 6px;
    outline: none;
    transition: border-color 0.3s ease;
}

/* 密码输入框包装器 */
.popup.register .register_box .input_box .password-input-wrapper {
    position: relative;
    width: 100%;
}

.popup.register .register_box .input_box .password-input-wrapper input {
    padding-right: 50px; /* 为眼睛图标留出空间 */
}

/* 密码切换按钮 */
.popup.register .register_box .input_box .password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    height: auto;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 眼睛图标样式 */
.popup.register .register_box .input_box .eye-icon {
    color: #666;
    transition: color 0.2s ease;
}

/* 隐藏浏览器默认的密码显示图标 */
.popup.register .register_box .input_box input[type="password"]::-ms-reveal,
.popup.register .register_box .input_box input[type="password"]::-ms-clear {
    display: none;
}

.popup.register .register_box .input_box input[type="password"]::-webkit-contacts-auto-fill-button,
.popup.register .register_box .input_box input[type="password"]::-webkit-credentials-auto-fill-button {
    display: none;
}

.popup.register .register_box .input_box .password-toggle:hover .eye-icon {
    color: #333;
}

.popup.register .register_box .input_box input:focus {
    border: 1px solid rgba(0, 0, 0, 1);
}

/* 输入框错误状态 */
.popup.register .register_box .input_box[data-error="1"] input {
    border: 1px solid rgba(255, 3, 3, 1);
    background: rgba(255, 248, 248, 1);
}

.popup.register .register_box .input_box .tip {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0px;
    width: 100%;
    height: 18px;
    color: rgba(255, 3, 3, 1);
    text-align: left;
    opacity: 0;
    transition: all .2s ease-out;
}

.popup.register .register_box .input_box[data-error="1"] .tip {
    display: block;
    opacity: 1;
}

.popup.register .register_box .register_btn {
    margin-top: 18px;
    width: 100%;
    border-radius: 6px;
    background: rgba(0, 0, 0, 1);
    box-shadow: 0px 2px 15px rgba(182, 182, 182, 0.3);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0px;
    line-height: 16px;
    color: rgba(255, 255, 255, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 0;
    cursor: pointer;
}

.popup.register .register_box .register_bottom {
    /* display: none; */
    border: none;
    height: 1px;
    width: 100%;
    background: rgba(207, 207, 207, 1);
    margin-top: 27px;
}

.popup.register .register_box .other_register_box {
    display: block;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 34px;
}

.popup.register .register_box .other_register_box .nextend-social-login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.popup.register .register_box .other_register_box .facebook_register {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
    cursor: pointer;
}

.popup.register .register_box .other_register_box .google_register {
    width: 100%;
    display: flex;
    justify-content: center;
    cursor: pointer;
}

.popup.register .register_box .to_log_in {
    margin-top: 27px;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0px;
    line-height: 23.17px;
    color: rgba(0, 0, 0, 1);
    text-align: center;
}

.popup.register .register_box .to_log_in .log_in_btn {
    font-size: 16px;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.popup.register .register_box .clause {
    margin-top: 26px;
    text-indent: 20px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0px;
    line-height: 16px;
    color: rgba(179, 179, 179, 1);
}

.popup.register .register_box .clause a {
    color: #000;
    text-decoration: underline;
    cursor: pointer;
}

.popup.register .register_box .clause a:hover {
    color: #000;
}

/* 注册图标样式 - 默认隐藏 */
.popup.register .register_box .register_icon {
    display: none;
    justify-content: center;
    margin-bottom: 20px;
}

.popup.register .register_box .register_icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}



/* 移动设备响应式设计 */
@media (max-width: 768px) {
  .popup.register {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    border-radius: 0;
    margin: 0;
  }
  
  .popup.register .register_container {
    flex-direction: column;
    height: 100%;
  }
  
  .popup.register .register_image {
    display: none; /* 移动设备隐藏图片 */
  }
  
  .popup.register .register_image .image_text_overlay {
    display: none; /* 移动设备隐藏文字覆盖层 */
  }
  
  .popup.register .register_box {
    padding: 40px 20px;
    min-height: 100vh;
    justify-content: flex-start;
  }
  
  .popup.register .register_box .register_icon {
    display: flex;
  }
  
  .popup.register .register_close {
    top: 60px;
    right: 20px;
    width: 32px;
    height: 32px;
  }
}

/* 小屏手机响应式设计 */
@media (max-width: 480px) {
  .popup.register .register_box {
    padding: 60px 15px 30px 15px;
  }
  
  .popup.register .register_box .register_title {
    font-size: 20px;
    line-height: 28px;
  }
  
  .popup.register .register_box .register_describtion {
    font-size: 14px;
    line-height: 20px;
  }
  
  .popup.register .register_box .other_register_box {
    margin-top: 0;
    margin-bottom: 0;
  }
  
  .popup.register .register_close {
    top: 50px;
    right: 15px;
    width: 28px;
    height: 28px;
  }
}

/* 平板设备响应式设计 */
@media (max-width: 1024px) and (min-width: 769px) {
  .popup.register {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    border-radius: 0;
    margin: 0;
  }
  
  .popup.register .register_container {
    height: 100%;
  }
  
  .popup.register .register_image {
    display: none; /* 平板设备隐藏图片 */
  }
  
  .popup.register .register_image .image_text_overlay {
    display: none; /* 平板设备隐藏文字覆盖层 */
  }
  
  .popup.register .register_box {
    padding: 50px 40px;
    min-height: 100vh;
    justify-content: flex-start;
  }
  
  .popup.register .register_box .register_icon {
    display: flex;
  }
  
  .popup.register .register_close {
    top: 70px;
    right: 25px;
    width: 36px;
    height: 36px;
  }
} 