/* 登录弹窗样式 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  background-color: rgba(23, 23, 23, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  width: 480px;
  max-width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
}

.modal-overlay.show .modal-content {
  transform: scale(1);
}

/* 弹窗头部样式 */
.modal-header {
  position: relative;
  padding: 30px 30px 15px;
  text-align: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.5px;
}

/* 快速注册标题样式 */
.register-title {
      margin-bottom: 25px;
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.5px;
  text-align: center;
  padding-top: 10px;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #666;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;

}

.close-btn:hover {
  color: #FF6700;
}

.close-btn:active {
  color: #E55C00;
}

/* Tabs切换样式 */
.login-tabs {
  display: flex;
  justify-content: center;
  padding: 0 30px;
  margin-bottom: 25px;
  position: relative;
  flex-wrap: wrap;
}

.login-tab {
  padding: 0 25px;
  height: 50px;
  line-height: 40px;
  font-size: 18px;
  font-weight: 700;
  color: #999;
  position: relative;
  cursor: pointer;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.login-tab:hover {
  color: #FF6700;
}

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

/* 为每个tab添加下划线，但默认隐藏 */
.login-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  width: 60%;
  height: 3px;
  background-color: #FF6700;
  opacity: 0;
  transition: all 0.3s ease;
}

/* 当tab激活时显示下划线 */
.login-tab.active::after {
  opacity: 1;
}

/* 表单样式 */
.login-panel {

}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group input {
  width: 100%;
  height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-size: 14px;
  box-sizing: border-box;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
}

.form-group input::placeholder {
  color: #666;
}

.form-group input:hover {
  border-color: #FF6700;
}

.form-group input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.2);
}

.verify-code-group {
  position: relative;
}

.verify-code-group input {
  padding-right: 0; /* 文本链接不需要额外空间 */
}

.send-code-btn {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 120px;
  height: 44px;
  background-color: rgba(255, 103, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  border-radius: 46px; /* 与输入框圆角匹配 */
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(255, 103, 0, 0.3);
  overflow: hidden;
}

.send-code-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.6s ease;
}

.send-code-btn:hover:not(:disabled) {
  background-color: rgba(255, 82, 0, 0.85);
  transform: translateY(-50%);
  box-shadow: 0 6px 20px rgba(255, 103, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.3);
}

.send-code-btn:hover:not(:disabled)::before {
  left: 100%;
}

.send-code-btn:active:not(:disabled) {
  transform: translateY(-50%);
}

.send-code-btn:disabled {
  background-color: rgba(220, 223, 230, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #c0c4cc;
  cursor: not-allowed;
  transform: translateY(-50%);
  box-shadow: none;
}

.form-options {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  font-size: 13px;
}

.login-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  margin-bottom: 0;
  font-size: 14px;
}

/* 短信登录页面的注册账号居右显示 */
#phone-panel .login-actions {
  justify-content: flex-end;
}

.form-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #aaa;
  line-height: 1.4;
}

.form-options label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border: 2px solid #666;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-options label input[type="checkbox"]:checked {
  background-color: #FF6700;
  border-color: #FF6700;
}

  .form-options label a,
  .forgot-password,
  .register-account,
  #go-to-login {
  color: #888;
  text-decoration: none;
  transition: color 0.3s ease;
}

  .form-options label a:hover,
  .forgot-password:hover,
  .register-account:hover,
  #go-to-login:hover {
  color: #FF6700;
}

.login-submit-btn {
  width: 100%;
  height: 50px;
  background-color: rgba(255, 103, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(255, 103, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.login-submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.6s ease;
}

.login-submit-btn:hover::before {
  left: 100%;
}

.login-submit-btn:hover {
  background-color: rgba(255, 82, 0, 0.85);
  box-shadow: 0 6px 20px rgba(255, 103, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.3);
}

.login-submit-btn:active {
  box-shadow: 0 2px 8px rgba(255, 103, 0, 0.3);
  background-color: rgba(255, 82, 0, 0.9);
}

.login-submit-btn:disabled {
  background-color: rgba(220, 223, 230, 0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: #c0c4cc;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  border-color: rgba(255, 255, 255, 0.1);
}

.login-submit-btn:disabled::before {
  display: none;
}

/* 第三方登录样式 */
.third-party-login {
  padding: 20px 0;
}

.third-party-title {
  text-align: center;
  margin-bottom: 25px;
  position: relative;
}

.third-party-title::before,
.third-party-title::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 35%;
  height: 1px;
  background-color: rgb(255 255 255 / 10%);
  transition: all 0.3s ease;
}

.third-party-title::before {
  left: 0;
}

.third-party-title::after {
  right: 0;
}

.third-party-title span {
  display: inline-block;
  padding: 0 20px;
  background-color: rgba(23, 23, 23, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #888;
  font-size: 14px;
  font-weight: 500;
}

.third-party-icons {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.third-party-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(248, 249, 250, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.third-party-btn:hover {
  background-color: #e9ecef78;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.wechat-login i {
  color: #07c160;
  font-size: 25px;
  transition: transform 0.3s ease;
}

.qq-login i {
  color: #12b7f5;
  font-size: 24px;
  transition: transform 0.3s ease;
}

.app-login i {
  color: #ff6700;
  font-size: 24px;
  transition: transform 0.3s ease;
}

.third-party-btn span {
  position: absolute;
  bottom: 55px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: #666;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.third-party-btn:hover span {
  opacity: 1;
}

/* 响应式设计 */
@media (max-width: 576px) {
  .modal-content {
    width: 95%;
  }
  
  .modal-header,
  .login-panel,
  .third-party-login {
    padding: 20px;
  }
  
  .third-party-icons {
    gap: 30px;
  }
}