/* 登录弹窗样式 */
.login-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, #1878ffd9, #233ad0);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  display: none;
}

.login-modal-content {
  width: 90%;
  max-width: 400px;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.login-header {
  position: relative;
  text-align: center;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.login-header h2 {
  font-size: 20px;
  color: #333;
  margin: 0;
  font-weight: normal;
}

.login-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 5px;
  line-height: 1;
  transition: color 0.3s ease;
}

.login-close:hover {
  color: #333;
}

.login-body {
  padding: 25px 20px;
}

.login-form-item {
  margin-bottom: 20px;
}

.login-form-item label {
  display: block;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
}

.login-form-item input {
  width: 100%;
  height: 40px;
  padding: 0 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.login-form-item input:focus {
  outline: none;
  border-color: #0078d4;
}

.slide-verify {
  margin-top: 8px;
}

/* 滑动验证容器样式 */
.slide-bar {
  position: relative;
  width: 100%;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.slide-bar:hover {
  border-color: #0078d4;
}

.slide-bar .nc_scale {
  height: 32px;
}

.verification-container {
  display: flex;
  gap: 10px;
}

.verification-container input {
  flex: 1;
}

.get-code-btn {
  width: 120px;
  height: 40px;
  background-color: white;
  border: 1px solid #0078d4;
  color: #0078d4;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.get-code-btn:hover:not(:disabled) {
  background-color: #0078d4;
  color: white;
}

.get-code-btn:disabled {
  border-color: #ccc;
  color: #ccc;
  cursor: not-allowed;
}

.login-submit-btn {
  width: 100%;
  height: 45px;
  background-color: #0078d4;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.login-submit-btn:hover {
  background-color: #005a9e;
}

.login-agreement {
  text-align: center;
  font-size: 12px;
  color: #999;
  margin-top: 15px;
  line-height: 1.5;
}

.login-agreement a {
  color: #0078d4;
  text-decoration: none;
  transition: text-decoration 0.3s ease;
}

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

/* 统一响应式设计 */
@media screen and (max-width: 768px) {
  .login-modal-content {
    width: 85%;
    max-width: 360px;
  }
}

@media screen and (max-width: 480px) {
  .login-modal-content {
    width: 95%;
    margin: 0 10px;
  }

  .login-body {
    padding: 20px 15px;
  }

  .login-header {
    padding: 15px 0;
  }

  .login-header h2 {
    font-size: 18px;
  }

  .login-form-item input {
    height: 44px; /* 稍高一点，更适合触摸操作 */
    font-size: 16px; /* 防止iOS缩放 */
  }

  .verification-container {
    gap: 8px;
  }

  .get-code-btn {
    width: 100px;
    height: 44px;
    font-size: 13px;
  }

  .login-submit-btn {
    height: 48px;
    font-size: 17px;
  }

  .login-agreement {
    font-size: 11px;
    padding: 0 10px;
  }
}