/* 重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Microsoft YaHei", sans-serif;
}

/* 基础布局 */
body {
  background: #fff;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 28px 16px;
    padding-bottom: 100px; 
  min-height: 100vh;
  box-sizing: border-box;
}

.container {
  width: 100%;
  height: 100%;
  max-width: 375px;
}

/* 头部样式 */
.header {
  text-align: center;
  margin-bottom: 32px;
}

.header h1 {
  color: #1a1a1a;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
}

.welcome-text {
  color: #333;
  font-size: 24px;
  line-height: 1.3;
  margin-bottom: 12px;
  text-align: left;
  margin-left: 8px;
}

.welcome-subtext {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  margin-left: 8px;
  margin-top: 25px;
}

/* 选项卡系统 */
.tabs-container {
  margin-bottom: 20px;
  position: relative;
}

/* 修改后的CSS样式 */
.tabs-nav {
  display: flex;
  gap: 20px; /* 增加按钮间距 */
  margin-top: -25px;
  margin-left: 8px;
}

.tab-item {
  padding: 12px 0;
  font-size: 15px;
  color: #999; /* 默认文字颜色 */
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  -webkit-tap-highlight-color: transparent; /* 禁用移动端点击高亮 */
}

.tab-item.active {
  color: black; /* 高亮颜色 */
  font-weight: 600; /* 加粗效果 */
}

/* 输入框组 */
.input-group {
  margin-bottom: 16px;
  position: relative;
}

.form-input {
  width: 100%;
  height: 48px;
  padding: 0 40px;
  border: 1px solid #e6e6e6;
  border-radius: 50px;
  font-size: 15px;
}

.form-input:focus {
  border-color: #1677ff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.1);
}

/* 国家选择器 */
/* 修改 style.css 中的以下部分 */
.country-selector {
  position: absolute;
  left: 12px;
  top: 23px;
  height: 20px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
  cursor: pointer; /* 确保显示手型光标 */
  pointer-events: auto; /* 恢复点击事件 */
  -webkit-tap-highlight-color: transparent;
}

.country-code {
  color: #333;
}

.country-arrow {
  color: #999;
  font-size: 10px;
}

/* 邮箱图标 */
.email-icon {
  position: absolute;
  left: 12px;
  top: 25px;
  transform: translateY(-50%);
  color: #999;
}

/* 密码可见切换 */
.password-toggle {
  position: absolute;
  right: 16px;
  top: 14px !important;
  transform: none !important;
  color: #999;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent; /* 禁用移动端点击高亮 */
}

.agreement {
  margin: 24px 0;
  position: relative;
  display: block; /* 修改为块级元素 */
  align-items: center;
  color: #666;
  font-size: 12px;
}

.agreement-content {
  display: flex;
  align-items: flex-start;
  margin-bottom: 4px; /* 为错误提示预留空间 */
}

.agreement input {
  margin-right: 8px;
  margin-top: 2px;
}

.error-message#agreementError {
  margin-left: 28px; /* 与复选框对齐 */
  margin-top: 0;
  display: block; /* 确保可以显示 */
}

.agreement a {
  color: #1677ff;
  text-decoration: none;
}

/* 注册按钮 */
.register-btn {
  width: 100%;
  height: 50px;
  background: linear-gradient(
    180deg,
    #1a7aff 0%,
    #0069ff 100%
  );
  color: white;
  border: none;
  border-radius: 35px;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 30px;
  -webkit-tap-highlight-color: transparent; /* 禁用移动端点击高亮 */
}

.register-btn:hover {
  background: #409eff;
}

/* 错误提示 */
.error-message {
  color: #ff4d4f;
  font-size: 12px;
  display: none;
  line-height: 1.5;
  padding-left: 0; /* 移除左侧缩进 */
}
.input-error {
  border-color: #ff4d4f !important;
}

/* 国家下拉菜单 */
.country-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 280px;
  max-height: 200px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 100;
}

.country-item {
  padding: 12px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.country-item:hover {
  background: #f5f5f5;
}

/* 手机号输入框 */
/* 修改CSS样式 */
.country-code-selector {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  z-index: 2;
  pointer-events: none; /* 不影响输入框点击 */
}

.country-code-selector .divider {
  width: 1px;
  height: 20px;
  background: #ddd;
  margin: 0 8px;
}

#phone {
  padding-left: 72px !important; /* 精确留出国家区号区域 */
}

/* 添加图标样式 */
.input-icon {
  position: absolute;
  left: 12px;
  top: 14px; /* 固定像素值替代百分比定位 */
  transform: none; /* 移除百分比位移 */
  display: flex;
  align-items: center;
  height: 20px; /* 精确控制高度 */
}

.password-icon {
  width: 25px;
  height: 23px;
  margin-top: 11px;
}

/* 调整输入框内边距 */
#password,
#confirmPassword {
  padding-left: 44px !important;
}

/*底部区域*/
.footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 100%;
  background: #ecf2ff; /* 和截图背景色一致 */
  border-radius: 16px 16px 0 0; /* 上两个圆角 */
  padding: 12px 16px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  height: 85px;
  margin-top: 0;
  margin-left: 0;
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin-left: 10px;
}

.footer-title {
  flex: 1;
  margin: 0 12px;
  font-size: 16px;
  font-weight: 500;
  color: #0069FF;
  white-space: nowrap;
  margin-left: 15px;
  margin-top: -10px;
}

.footer-button {
  background: #0069FF;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
   -webkit-tap-highlight-color: transparent;
}

.footer-button:hover {
  background: rgba(152, 170, 250, 1);
  transform: translateY(-2px);
}

.footer-subtext {
  font-size: 12px;
  color: #0069FF;
  margin-left: 65px;
  margin-top: -10px;
}

.footer-button i {
  display: none;
}

/*验证码输入框样式*/
#verify-section {
  margin-top: 20px;
  padding: 16px;
  background-color: #f9f9f9;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
}
#verify-section p {
  margin-bottom: 8px;
  font-weight: bold;
}
#codeInput {
  width: 100%;
  padding: 8px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
#submitCode {
  padding: 10px 16px;
  background-color: #1677ff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
#submitCode:hover {
  background-color: #409eff;
}

/*邀请码图标样式*/
.input-uid {
  position: absolute;
  top: 24px;
  left: 10px;
  transform: translateY(-50%);
  width: 24px;
  height: 23px;
}

.input-uid-boll {
  position: absolute;
  top: 24px;
  left: 10px;
  transform: translateY(-50%);
  width: 24px;
  height: 23px;
  filter: hue-rotate(100deg)saturate(50%)brightness(96%)
}

.form-inputtwo {
  background-color: #f5f5f5;
  width: 100%;
  height: 48px;
  padding: 0 40px;
  border: 1px solid #e6e6e6;
  border-radius: 50px;
  font-size: 15px;
  color:#999;
}

/*隐藏微软浏览器自动插入密码框图标*/
input[type="password"]::-ms-reveal {
  display: none;
}

input[type="password"]::-webkit-contacts-auto-fill-button,
input[type="password"]::-webkit-credentials-auto-fill-button {
  visibility: hidden;
  display: none !important;
}
