/* 注册页面特定样式 */

.header-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.header-section h2 {
  margin: 0;
  font-size: 36px;
}

.back-link {
  margin: 0;
}

.back-link a {
  color: var(--link-color);
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.3s ease;
  text-shadow: 1px 1px 2px var(--text-shadow-color);
}

.back-link a:hover {
  text-decoration: underline;
  transform: translateX(-3px);
}

.back-link i {
  font-size: 16px;
}

/* 注册表单样式 */
.register-form {
  animation: fadeIn 0.4s ease-out;
}

.register-form .input-box {
  position: relative;
  width: 100%;
  margin: 20px 0;
}

.register-form .input-wrapper {
  position: relative;
  width: 100%;
  height: 55px;
  display: flex;
  align-items: center;
}

.register-form .input-wrapper input,
.register-form .input-wrapper select {
  width: 100%;
  height: 100%;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  padding: 10px 45px 10px 45px;
  font-size: 16px;
  color: var(--text-color);
  text-shadow: 1px 1px 2px var(--text-shadow-color);
  opacity: 0.85;
  font-family: 'Ubuntu', Poppins, sans-serif;
}

.register-form .input-wrapper input::placeholder {
  color: var(--placeholder-color);
  opacity: 0.7;
}

.register-form .input-wrapper input:focus,
.register-form .input-wrapper select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 8px rgba(79, 220, 255, 0.3);
}

.register-form .input-wrapper i,
.register-form .input-wrapper svg {
  position: absolute;
  left: 15px;
  color: var(--icon-color);
  font-size: 18px;
  text-shadow: 1px 1px 2px var(--text-shadow-color);
  pointer-events: none;
}

.register-form .input-wrapper .toggle-password {
  position: absolute;
  right: 18px;
  font-size: 20px;
  color: var(--icon-color);
  text-shadow: 1px 1px 2px var(--text-shadow-color);
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  pointer-events: auto;
  left: auto;
}

.register-form .input-wrapper .toggle-password:hover {
  font-size: 22px;
  opacity: 0.8;
  transform: scale(1.1);
}

/* Select 下拉框 */
.register-form .input-wrapper select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 20px;
  padding-right: 50px;
}

.register-form .input-wrapper select option {
  background: #1a1a1a;
  color: #ffffff;
  padding: 10px;
}

/* 手机绑定部分 */
.phone-binding {
  margin: 15px 0;
  padding: 10px 0;
}

.phone-binding label {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--text-color);
  font-size: 14px;
  text-shadow: 1px 1px 2px var(--text-shadow-color);
}

.phone-binding input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-right: 10px;
  cursor: pointer;
  accent-color: var(--accent-color);
}

.phone-input-box {
  animation: slideDown 0.3s ease-out;
}

/* 电话格式提示 */
.phone-format-hint {
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(79, 220, 255, 0.1);
  border-left: 3px solid var(--link-color);
  border-radius: 4px;
}

.phone-format-hint small {
  font-size: 12px;
  color: var(--link-color);
  text-shadow: 1px 1px 2px var(--text-shadow-color);
  display: block;
}

body.light-mode .phone-format-hint {
  background: rgba(0, 102, 204, 0.08);
}

body.light-mode .phone-format-hint small {
  color: #0066cc;
}

/* 服务条款 */
.terms {
  margin: 18px 0;
  padding: 12px 0;
}

.terms label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-color);
  text-shadow: 1px 1px 2px var(--text-shadow-color);
  line-height: 1.5;
}

.terms input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--accent-color);
  flex-shrink: 0;
}

.terms span {
  flex: 1;
}

.terms a {
  color: var(--link-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.terms a:hover {
  text-decoration: underline;
}

/* 登录链接 */
.login-link {
  text-align: center;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.login-link p {
  margin: 0;
  font-size: 14px;
  color: var(--text-color);
  text-shadow: 1px 1px 2px var(--text-shadow-color);
}

.login-link a {
  color: var(--link-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.login-link a:hover {
  text-decoration: underline;
}

/* 按钮样式 */
.btn {
  display: inline-block;
  width: 100%;
  padding: 0;
  height: 45px;
  background: var(--accent-color);
  color: var(--text-color);
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  margin: 25px 0 0 0;
  transition: all 0.3s ease;
  font-family: 'Ubuntu', Poppins, sans-serif;
}

.btn:hover {
  transform: scale(1.02);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 响应式 */
@media (max-width: 600px) {
  .header-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
  }

  .header-section h2 {
    font-size: 28px;
    margin-bottom: 5px;
  }

  .back-link a {
    font-size: 12px;
  }

  .register-form .input-box {
    margin: 15px 0;
  }

  .register-form .input-wrapper input,
  .register-form .input-wrapper select {
    font-size: 14px;
    padding: 12px 40px 12px 40px;
  }

  .register-form .input-wrapper i,
  .register-form .input-wrapper svg {
    font-size: 16px;
  }

  .btn {
    height: 40px;
    font-size: 14px;
  }

  .phone-binding label,
  .terms label {
    font-size: 12px;
  }
}

@media (max-height: 800px) {
  .register-form .input-box {
    margin: 12px 0;
  }
}
