.login-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;

  overflow-y: auto; /* 允许遮罩层滚动 */
  overflow-x: hidden; /* 允许遮罩层滚动 */
}

.login-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* 弹窗容器 */
.login-modal {
  width: 100%;
  height: 100%;
  min-height: 600px;
  background-color: #fff;
  transform: translateX(20px);
  transition: transform 0.4s ease;
  background-color: #0f2027;
}

.login-modal-overlay.active .login-modal {
  transform: translateY(0);
}

/* 弹窗顶部区域 */
.modal-header-login {
  height: 30%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #121212;
  color: white;
  /* padding: 20px 20px 70px; */
  position: relative;
}

.back-btn {
  width: 32px;
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  position: absolute;
  top: 20px;
  left: 20px;
}

.app-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.app-icon {
  width: 60px;

  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.icon-symbol {
  color: #ffc107;
  font-size: 28px;
  font-weight: bold;
}

.app-name {
  font-size: 14px;
  font-weight: 500;
}

/* 弹窗主体内容 */
.modal-content {
  height: 70%;
  min-height: 400px;
  overflow: hidden;
  background-color: #6a7579;
  border-radius: 20px 20px 0 0;
}

.login-tabs {
  display: flex;
  height: 60px;
  border-radius: 25px 25px 0 0;
  border: 1px solid #fff;
  background: url(../image/login_bg_1.png) no-repeat top center/cover;
}
.login-tabs.email-tab {
  background: url(../image/login_bg_2.png) no-repeat top center/cover;
}

.login-tabs.phone-tab {
  background: url(../image/login_bg_1.png) no-repeat top center/cover;
}

.login-tab {
  flex: 1;
  text-align: center;
  padding: 0px 0 15px;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-tab.active {
  color: #000;
}

.login-tab.active::after {
  content: "";
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  height: 3px;
  width: 30px;
  background-color: #ffc107;
  border-radius: 3px 3px 0 0;
}

.denglu {
  height: 100%;
  background-color: #fff;
  padding: 40px 20px 20px;
  position: relative;
  margin-top: -1px;
}

.input-group {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}
.input-group-img {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}
.input-label {
  font-size: 14px;
  color: #666;
  margin-bottom: 6px;
}

.phone-input-wrapper {
  flex: 1;
  display: flex;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid #ddd;
  /* overflow: hidden; */
}

.selected-flag {
  width: 80px;
  display: flex;
  align-items: center;
  font-size: 15px;
  color: #333;
}
.country-code {
  width: 90px;
  height: 45px;
  font-size: 14px !important;
  border: 1px solid #c42828;
}
.flag-dropdown {
  z-index: 1000;
}
.country-list {
  font-size: 14px !important;
  z-index: 1000 !important;
}
.intl-tel-input {
  float: left;
  width: 82px;
  display: flex;
  align-items: center;
}
.intl-tel-input .country-list {
  background-color: #fff !important;
  color: #000 !important;
  border: none !important;
  border-radius: 4px !important;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
}
.intl-tel-input .country-list li {
  margin-top: 5px;
}

/* 自定义intlTelInput国家列表样式 */
.intl-tel-input .country-list {
  /* 自定义滚动条 - Webkit浏览器 (Chrome, Safari, Edge) */
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: #888 #f1f1f1; /* Firefox: 滑块颜色 轨道颜色 */

  /* 设置最大高度，确保显示滚动条 */
  max-height: 300px; /* 可以根据需要调整 */
  overflow-y: auto; /* 确保垂直滚动 */
}

/* Chrome, Safari, Edge 滚动条样式 */
.intl-tel-input .country-list::-webkit-scrollbar {
  width: 10px; /* 垂直滚动条宽度 */
  height: 10px; /* 水平滚动条高度 */
}

.intl-tel-input .country-list::-webkit-scrollbar-track {
  background: #f1f1f1; /* 轨道背景 */
  border-radius: 5px; /* 轨道圆角 */
}

.intl-tel-input .country-list::-webkit-scrollbar-thumb {
  background: #888; /* 滑块颜色 */
  border-radius: 5px; /* 滑块圆角 */
  border: 2px solid #f1f1f1; /* 滑块边框，形成间距效果 */
}

.intl-tel-input .country-list::-webkit-scrollbar-thumb:hover {
  background: #555; /* 悬停时滑块颜色 */
}

/* 鼠标滚轮平滑滚动 */
.intl-tel-input .country-list {
  scroll-behavior: smooth;
}

.country-flag {
  color: #d32f2f;
  margin-right: 6px;
}

.phone-input {
  flex: 1;
  padding: 14px 12px 14px 0;
  border: none;
  font-size: 15px;
  outline: none;
}

.verification-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #ddd;
}

.verification-input {
  flex: 1;
  padding: 14px 12px 14px 0;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
}

.verification-input:focus {
  border-color: #ffc107;
}

.get-code-btn {
  color: #f4c310;
  width: 80px;
  height: 24px;
  border: 1px solid #f4c310;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  line-height: 22px;
  text-align: center;
}

.error-code-btn {
  color: #999;
  border: 1px solid #999;
}

.get-code-btn:disabled {
  background-color: #e0e0e0;
  color: #999;
  cursor: not-allowed;
}

.remember-me {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.remember-checkbox {
  margin-right: 8px;
  width: 18px;
  height: 18px;
  accent-color: #ffc107;
}

.remember-label {
  font-size: 14px;
  color: #666;
}

.password-login {
  display: block;
  margin-left: 30px;
  color: #666;
  font-size: 14px;
  margin-bottom: 24px;
  text-decoration: none;
}
.login-btn-wrapper {
  height: calc(100% - 184px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-btn-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.login-btn {
  width: 90%;
  height: 44px;
  line-height: 44px;
  background-color: #ffc107 !important;
  color: #333;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin: 25% 5% 16px;
}

.login-btn:hover {
  background-color: #ffb300;
}

.register-hint {
  font-size: 12px;
  color: #888;
  text-align: center;
  margin-bottom: 20px;
}

.agreement {
  display: flex;
  align-items: center;
  justify-content: center;
}

.agreement-checkbox {
  margin-right: 8px;
  width: 16px;
  height: 16px;
  accent-color: #ffc107;
}

.agreement-text {
  font-size: 12px;
  color: #666;
}

.agreement-link {
  color: #ffc107;
  text-decoration: none;
}

.code-countdown {
  font-size: 14px;
  color: #888;
}

.modal-footer-nav {
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
}

.instructions {
  margin-top: 40px;
  max-width: 500px;
  background-color: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.instructions h3 {
  margin-bottom: 12px;
  color: #333;
}

.instructions p {
  margin-bottom: 10px;
  color: #666;
  font-size: 14px;
}

.instructions ul {
  padding-left: 20px;
  font-size: 14px;
  color: #666;
}

.instructions li {
  margin-bottom: 8px;
}
