/* 注册页面样式 */
.register-page {
  width: 100%;
  background: rgba(248, 248, 248, 1);
  display: flex;
  flex-direction: column;
}

/* 顶部导航栏 */
.register-header {
  width: 100%;
  background: rgba(255, 255, 255, 1);
  border-bottom: 1px solid rgba(239, 239, 239, 1);
  padding: 20px 0;
}

.header-content {
  width: 1560px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  width: 180px;
  height: auto;
  cursor: pointer;
}

.welcome-text {
  font-size: 22px;
  font-weight: 500;
  color: rgba(51, 51, 51, 1);
}

.header-right {
  display: flex;
  align-items: center;
}

.back-home-btn {
  padding: 8px 24px;
  background: rgba(255, 255, 255, 1);
  color: rgba(1, 84, 152, 1);
  border: 1px solid rgba(1, 84, 152, 1);
  border-radius: 4px;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
}

.back-home-btn:hover {
  background: rgba(1, 84, 152, 1);
  color: rgba(255, 255, 255, 1);
}

/* 轮播图背景区域 */
.banner-section {
  width: 100%;
  height: 660px;
  position: relative;
  overflow: hidden;
  background: rgba(51, 51, 51, 1);
}

.banner-slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.banner-slide.active {
  opacity: 1;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-indicators {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.indicator.active {
  background: rgba(255, 152, 56, 1);
  width: 24px;
  border-radius: 6px;
}

/* 注册表单区域（嵌入在轮播图中，位置在中间） */
.register-section {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  background: rgba(255, 255, 255, 1);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 20;
  display: flex;
}

.register-container {
  width: 100%;
  display: flex;
  flex-direction: row;
}

/* 左侧：注册表单 */
.register-form-container {
  flex: 1;
  padding: 32px 40px;
  border-right: 1px solid rgba(239, 239, 239, 1);
}

.register-title {
  font-size: 22px;
  font-weight: 500;
  color: rgba(51, 51, 51, 1);
  text-align: left;
  margin-bottom: 24px;
}

.register-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 4px;
}

/* 手机号输入框 */
.phone-wrapper {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 1);
  border: 1px solid rgba(238, 238, 238, 1);
  height: 48px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.phone-wrapper:focus-within {
  border-color: rgba(1, 84, 152, 1);
}

.phone-wrapper.has-error {
  border-color: rgba(255, 152, 56, 1);
}

.country-code {
  padding: 0 12px;
  font-size: 16px;
  font-weight: 400;
  color: rgba(51, 51, 51, 1);
  white-space: nowrap;
  border-right: 1px solid rgba(238, 238, 238, 1);
  height: 100%;
  display: flex;
  align-items: center;
}

.phone-input {
  flex: 1;
  border: none !important;
  height: 100% !important;
  padding: 0 12px !important;
}

.phone-input:focus {
  border: none !important;
  outline: none;
}

.send-code-btn {
  padding: 0 16px;
  background: rgba(1, 84, 152, 1);
  color: rgba(255, 255, 255, 1);
  border: none;
  border-left: 1px solid rgba(238, 238, 238, 1);
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  height: 100%;
}

.send-code-btn:hover:not(.disabled) {
  background: rgba(1, 70, 130, 1);
}

.send-code-btn.disabled {
  background: rgba(170, 170, 170, 1);
  cursor: not-allowed;
}

.form-input {
  height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(238, 238, 238, 1);
  background: rgba(255, 255, 255, 1);
  font-size: 16px;
  font-weight: 400;
  color: rgba(51, 51, 51, 1);
  transition: all 0.3s ease;
}

.form-input::placeholder {
  color: rgba(170, 170, 170, 1);
}

.form-input:focus {
  outline: none;
  border-color: rgba(1, 84, 152, 1);
}

.form-input.has-error {
  border-color: rgba(255, 152, 56, 1);
}

.form-input.has-error:focus {
  border-color: rgba(255, 152, 56, 1);
}

/* 错误提示信息 */
.error-message {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 152, 56, 1);
}

.icon-warning {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  object-fit: contain;
}

/* 密码强度指示器 */
.password-strength {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.strength-dot {
  width: 60px;
  height: 4px;
  background: rgba(234, 234, 234, 1);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.strength-dot.active {
  background: rgba(255, 152, 56, 1);
}

/* 服务条款 */
.agreement-group {
  margin-top: 4px;
}

.agreement-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.agreement-checkbox {
  width: 18px;
  height: 18px;
  accent-color: rgba(1, 84, 152, 1);
  cursor: pointer;
  flex-shrink: 0;
}

.agreement-text {
  font-size: 14px;
  font-weight: 400;
  color: rgba(119, 119, 119, 1);
  line-height: 1.5;
}

.terms-link {
  color: rgba(1, 84, 152, 1);
  text-decoration: none;
  transition: all 0.3s ease;
}

.terms-link:hover {
  color: rgba(7, 91, 160, 1);
  text-decoration: underline;
}

/* 注册按钮 */
.register-button {
  height: 48px;
  background: rgba(1, 84, 152, 1);
  color: rgba(255, 255, 255, 1);
  border: none;
  font-size: 19px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 12px;
}

.register-button:hover {
  background: rgba(1, 70, 130, 1);
}

/* 右侧：登录提示 */
.login-prompt-container {
  width: 280px;
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-prompt-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.has-account {
  font-size: 16px;
  font-weight: 400;
  color: rgba(119, 119, 119, 1);
  text-align: center;
}

.login-link {
  color: rgba(1, 84, 152, 1);
  text-decoration: none;
  font-weight: 400;
  transition: all 0.3s ease;
  margin-left: 4px;
}

.login-link:hover {
  color: rgba(7, 91, 160, 1);
  text-decoration: underline;
}

.divider-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: rgba(239, 239, 239, 1);
}

.divider-text {
  font-size: 14px;
  font-weight: 400;
  color: rgba(170, 170, 170, 1);
}

.other-login {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.other-login-text {
  font-size: 14px;
  font-weight: 400;
  color: rgba(119, 119, 119, 1);
  text-align: center;
  margin: 0;
  line-height: 1.5;
}

.wechat-login {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(7, 193, 96, 1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 8px;
}

.wechat-login:hover {
  transform: scale(1.1);
}

.login-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Footer 样式调整（注册页面无需上边距） */
.register-page + #footer-placeholder .footer {
  margin-top: 0;
}

/* 响应式设计 */
@media (max-width: 1600px) {
  .header-content {
    width: 90%;
    padding: 0 20px;
  }
}

@media (max-width: 1200px) {
  .register-section {
    width: 90%;
    max-width: 900px;
  }
}

@media (max-width: 768px) {
  .header-content {
    width: 100%;
    padding: 0 16px;
  }

  .welcome-text {
    font-size: 18px;
  }

  .logo {
    width: 140px;
  }

  .back-home-btn {
    padding: 6px 16px;
    font-size: 14px;
  }

  .banner-section {
    height: auto;
    min-height: 600px;
  }

  .register-section {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 90%;
    max-width: 500px;
    margin: 40px auto;
  }

  .register-container {
    flex-direction: column;
  }

  .register-form-container {
    border-right: none;
    border-bottom: 1px solid rgba(239, 239, 239, 1);
  }

  .login-prompt-container {
    width: 100%;
    padding: 24px 40px;
  }
}

