* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

html, body {
  -webkit-user-select: none; /* 禁止选择文本 */
  -webkit-touch-callout: none; /* 禁止长按弹出菜单 */
  user-select: none;
  touch-action: manipulation; /* 减少点击延迟 */
}

body {
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  position: relative; /* 确保绝对定位基于 body */
  overscroll-behavior-y: contain; /* 防止下拉刷新或上拉到底部的回弹 */
}

.header-img {
  width: 100%;
  height: 240px;
  background: url("../images/login_bg.png") no-repeat center center;
  background-size: cover;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
}

.logo {
  margin-top: 20px;
  text-align: center;
}

.logo img {
  height: 48px;
  display: inline-block;
}

.form-container {
  width: 85%;
  margin-top: 30px;
}

.country {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e9f5ff;
  color: #007bff;
  font-size: 16px;
  border-radius: 20px;
  padding: 8px 16px;
  margin: 0 auto 20px auto;
  cursor: pointer;
  width: fit-content;
}

.country img {
  width: 18px;
  height: 18px;
  margin-right: 6px;
}

.form-group {
  display: flex;
  align-items: center;
  background: #f7f7f7;
  border-radius: 30px;
  padding: 14px 16px;
  margin-bottom: 15px;
}

.form-group input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  font-size: 16px;
  margin-left: 8px;
  -webkit-text-size-adjust: 100%;
}

.form-group img {
  width: 18px;
  height: 18px;
}

.forgot {
  text-align: right;
  font-size: 13px;
  color: #999;
  margin-bottom: 20px;
  cursor: pointer;
}

/* 固定底部按钮 */
.btn-container {
  position: fixed;
  bottom: 24px;
  left: 0;
  width: 100%;
  padding: 0 20px; /* 与 form-container 保持一致的边距 */
  box-sizing: border-box;
  z-index: 1000;
}

.btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 30px;
  background: #2196f3;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  /* 移除了无效的 bottom */
}

.btn:active {
  background: #1976d2;
}

/* 防止内容被按钮遮挡 */
.form-container {
  margin-bottom: 80px; /* 留出底部按钮的空间 */
}