/* 模态框通用样式 */
.modal .btn {
    border: none;
}

/* 独立登录按钮样式 */
.login-btn-custom {
  background-color: #0d6efd; /* Bootstrap primary color */
  border-color: #0d6efd;
  border-radius: 6px;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.login-btn-custom:hover {
  background-color: #0a58ca;
  border-color: #0a58ca;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(13, 110, 253, 0.2);
}

.login-btn-custom:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(13, 110, 253, 0.2);
}

/* 登录弹窗样式 */
.login-modal-content {
  border-radius: 24px;
  overflow: hidden;
}

/* 登录内容面板样式 */
.login-modal-body {
  display: none;
}

.login-modal-body.active {
  display: block;
}

.login-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px;
  flex-direction: column;
}

.password-modal-header {
  flex-direction: column;
}

.login-modal-title {
  margin: 0;
}

.login-modal-body {
  padding: 40px;
}

/* 登录标签页样式 */
.login-tab {
  padding-bottom: 5px;
  cursor: pointer;
  font-size: 20px;
  transition: all 0.3s ease;
  font-weight: bold;
}

.login-tab:not(:first-child) {
  margin-left: 40px;
}
.loginbox-login-subtype {
  display: flex;
  justify-content: center;
}

.login-tab.active {
  margin-right: 40px;
  border-bottom: 4px solid #2174ff;
  color: #2174ff;
  font-weight: bold;

}

/* 表单元素样式 */
.form-input-group {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 50px;
  overflow: hidden;
  cursor: text;
  transition: all 0.3s ease;
  align-items: center;
}

.form-input-group:focus-within {
  border-color: #2174ff;
  box-shadow: 0 0 0 2px rgba(33, 116, 255, 0.1);
}

.form-input-group .country-code {
  padding: 4px 15px;
  border-right: 1px solid #ddd;
}

.form-input-group .form-control {
  border: none;
  outline: none;
  flex: 1;
  height: 48px;
  padding: 0 20px;
  cursor: text;
  /* 禁用input默认点击效果 */
  -webkit-tap-highlight-color: transparent;
  user-select: text;
  box-shadow: none;
}

.form-control-custom {
  border: 1px solid #ddd;
  border-radius: 50px;
  padding: 0 16px;
  height: 44px;
  cursor: text;
  transition: all 0.3s ease;
  /* 禁用input默认点击效果 */
  -webkit-tap-highlight-color: transparent;
  user-select: text;
}

.form-control-custom:focus {
  border-color: #2174ff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(33, 116, 255, 0.1);
}

/* 密码输入框样式 */
.password-input-container {
  position: relative;
  cursor: text;
  transition: all 0.3s ease;
  border-radius: 50px;
}

.password-input-container:focus-within {
  box-shadow: 0 0 0 2px rgba(33, 116, 255, 0.1);
}

.password-input-container .form-control {
  padding-right: 40px;
  cursor: text;
  /* 禁用input默认点击效果 */
  -webkit-tap-highlight-color: transparent;
  user-select: text;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  outline: none;
  color: #666;
  cursor: pointer;
}

/* 协议复选框样式 */
.agreement-checkbox {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.agreement-checkbox label {
  margin-left: 8px;
  font-size: 14px;
  color: #333;
}

.agreement-checkbox a {
  color: #2174ff;
  text-decoration: none;
}

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

/* 按钮样式 */
.login-submit-btn {
  width: 100%;
  height: 50px;
  padding: 10px 0;
  background-color: #2174ff;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-submit-btn:hover:not(:disabled) {
  background-color: #195ed8;
}

.login-submit-btn:disabled {
  background-color: #ddd;
  color: #999;
  cursor: not-allowed;
}

.code-btn {
  border: none;
  border-left: 1px solid #ddd;
  background: none;
  color: #2174ff;
  cursor: pointer;
  padding: 0 15px;
  white-space: nowrap;
}

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

/* 链接容器样式 */
.links-container {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.links-center-container {
  text-align: right;
  margin-top: 15px;
}

.links-center-container span {
  color: #666;
  font-size: 14px;
}

.custom-link {
  color: #2174ff;
  font-size: 14px;
  text-decoration: none;
}

.custom-link:hover {
  text-decoration: underline;
}

/* 其他登录方式样式 */
.other-login-methods {
  margin-top: 20px;
  text-align: center;
}

.other-login-title {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

.social-login-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.login-icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background-color: #f8f9fa;
  border-radius: 50%;
  font-size: 20px;
  color: #666;
  text-decoration: none;
  transition: all 0.3s ease;
}

.login-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.login-icon .fa-weibo, .login-icon .fab.fa-weibo {
  color: #e6162d;
}

.login-icon .fa-qq, .login-icon .fab.fa-qq {
  color: #12b7f5;
}

.login-icon .fa-weixin, .login-icon .fab.fa-weixin {
  color: #07c160;
}

.login-icon .fa-apple, .login-icon .fab.fa-apple {
  color: #000;
}

/* 独立登录按钮的响应式调整 */
@media (max-width: 768px) {
  .login-btn-custom {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
  
  .modal-dialog {
    max-width: 90vw !important;
    margin: 10vh auto;
  }
}

/* 短信登录弹窗特定样式 */
#sms-login-modal .modal-dialog {
  max-width: 448px;
}

#sms-login-modal .modal-content {
  border-radius: 12px;
  overflow: hidden;
}

#sms-login-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

#sms-login-modal .modal-body {
  padding: 20px;
}

/* 密码登录弹窗特定样式 */
#password-login-modal .modal-dialog {
  max-width: 448px;
}

#password-login-modal .modal-content {
  border-radius: 12px;
  overflow: hidden;
}

#password-login-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  flex-direction: column;
}

#password-login-modal .modal-body {
  padding: 20px;
}

/* 注册弹窗特定样式 */
#register-modal .modal-dialog {
  max-width: 448px;
}

#register-modal .modal-content {
  border-radius: 12px;
  overflow: hidden;
}

#register-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

#register-modal .modal-body {
  padding: 20px;
}