:root {
    --main-color: #3498db;
    --clr-bdr: #ececec;
}
body{
  font-family: Inter, system-ui, sans-serif;
  
}
.border{
  border: 1px solid #ac2828;
}

.register-container {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  width: 100%;
}
h2 {
  margin-bottom: 20px;
}
.form-group {
  margin-bottom: 15px;
}
label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}
.submit-btn {
  width: 100%;
  background-color: #008445;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}
.submit-btn:hover {
  transform: scale(1.03);
}

/* 核心按钮样式 - 以 #008445 为主色构建渐变 */
.dynamic-btn {
  display: inline-block;
  padding: 14px 42px;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: #ffffff;
  /* 主色渐变：从亮翠绿到主题色再到深翠绿 */
  background: linear-gradient(135deg, #00a86b, #008445, #006b3a);
  background-size: 200% auto;
  border: none;
  border-radius: 60px;
  cursor: pointer;
  
  /* 阴影使用主题色半透明，更协调 */
  box-shadow: 0 12px 28px -8px rgba(0, 132, 69, 0.4), 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.28s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  
  -webkit-font-smoothing: antialiased;
  backdrop-filter: blur(2px);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* 细腻光晕伪元素 - 颜色适配主题 */
.dynamic-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.35), rgba(0, 132, 69, 0.1) 80%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: -1;
  border-radius: 60px;
}

/* 悬停效果：浮起 + 放大 + 阴影强化 + 背景微动 */
.dynamic-btn:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 24px 40px -12px rgba(0, 132, 69, 0.6), 0 8px 20px rgba(0, 0, 0, 0.15);
  background-position: 100% 0;
  filter: brightness(1.02) saturate(1.05);
}

.dynamic-btn:hover::before {
  opacity: 1;
}

/* 点击时微缩下沉 */
.dynamic-btn:active {
  transform: translateY(2px) scale(0.97);
  box-shadow: 0 8px 20px -6px rgba(0, 132, 69, 0.5);
  transition-duration: 0.08s;
  filter: brightness(0.96);
}

/* 无障碍焦点样式 */
.dynamic-btn:focus-visible {
  outline: 3px solid #facc15;
  outline-offset: 3px;
  border-radius: 60px;
}

/* 悬停时微增字间距，提升精致感 */
.dynamic-btn:hover {
  letter-spacing: 1.2px;
}

.dynamic-btn {
  transition-property: transform, box-shadow, background-position, filter, letter-spacing;
}

    /* ——— 通用样式：标题居中 + 左右装饰线 ——— */
    .title-with-lines {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 1.2rem;
      /* 控制线与文字间距 */
      width: 100%;
      max-width: 1000px;
      /* 限制最大宽度，防止线拉太长 */
      margin: 0 auto;
      /* 水平居中 */
      color: #1e293b;
      font-size: 2rem;
      font-weight: 600;
      letter-spacing: 0.02em;
      text-align: center;
  }
  /* 左右装饰线 */
  .title-with-lines::before,
  .title-with-lines::after {
      content: '';
      flex: 1;
      /* 自动撑满剩余空间 */
      height: 2px;
      background: linear-gradient(90deg, transparent, #008445, transparent);
      /* 柔和渐变，两端淡出 */
      min-width: 2rem;
      /* 保证线不会消失 */
  }
  /* 右侧线：反向渐变，视觉对称 */
  .title-with-lines::after {
      background: linear-gradient(90deg, transparent, #008445, transparent);
  }
  /* 响应式：小屏缩小间距 */
  @media (max-width: 480px) {
      .title-with-lines {
          gap: 0.6rem;
          font-size: 1.4rem;
      }
      .title-with-lines::before,
      .title-with-lines::after {
          min-width: 1rem;
      }
  }