/* ============================================================
   统一登录卡 · 与首页 hnyswm 悬浮登录框同一套视觉
   基准来源：zb_users/theme/hnyswm/template/header.php 内联样式
   使用方：WorkHub/hub.php、DevMemo 前台登录门禁
   ============================================================ */

.qs-login-card {
  position: relative;
  width: 400px;
  max-width: 100%;
  box-sizing: border-box;
  background: #fff;
  border-radius: 18px;
  padding: 34px 34px 26px;
  box-shadow: 0 26px 80px rgba(8, 24, 52, .4);
  text-align: center;
  animation: qsLoginIn .22s ease;
}

@keyframes qsLoginIn {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.qs-login-logo {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  background: linear-gradient(135deg, #1d6fe0, #0f4c9e);
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 8px 18px rgba(15, 41, 77, .32);
}

.qs-login-title {
  font-size: 19px;
  color: #1f2937;
  margin: 0 0 5px;
  font-weight: 700;
}

.qs-login-sub {
  font-size: 12px;
  color: #8a94a6;
  margin: 0 0 20px;
  line-height: 1.6;
}

.qs-login-err {
  display: none;
  background: #fdeeee;
  color: #b02a37;
  font-size: 13px;
  border-radius: 8px;
  padding: 9px 12px;
  margin-bottom: 16px;
  text-align: left;
  line-height: 1.6;
}

.qs-login-err.on {
  display: block;
}

.qs-login-form {
  margin: 0;
}

.qs-login-field {
  margin-bottom: 15px;
  text-align: left;
}

.qs-login-field label {
  display: block;
  font-size: 13px;
  color: #5b6472;
  margin-bottom: 6px;
  font-weight: 500;
}

.qs-login-field input {
  width: 100%;
  height: 42px;
  border: 1px solid #d7dee8;
  border-radius: 9px;
  padding: 0 12px;
  font-size: 14px;
  font-family: inherit;
  color: #1f2937;
  background: #fff;
  outline: none;
  box-sizing: border-box;
  transition: border-color .2s, box-shadow .2s;
}

.qs-login-field input::placeholder {
  color: #9aa5b5;
}

.qs-login-field input:focus {
  border-color: #1d6fe0;
  box-shadow: 0 0 0 3px rgba(29, 111, 224, .12);
}

.qs-login-pass {
  position: relative;
}

.qs-login-pass input {
  padding-right: 44px;
}

.qs-login-eye {
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  border-radius: 8px;
  color: #8a94a6;
  cursor: pointer;
}

.qs-login-eye:hover {
  background: #f1f4f9;
  color: #1f2937;
}

.qs-login-eye:focus-visible {
  outline: 2px solid #1d6fe0;
  outline-offset: 1px;
}

.qs-login-verify {
  display: flex;
  gap: 10px;
  align-items: center;
}

.qs-login-verify input {
  flex: 1 1 auto;
  min-width: 0;
}

.qs-login-verify img {
  width: 104px;
  height: 42px;
  flex: 0 0 104px;
  object-fit: cover;
  border: 1px solid #d7dee8;
  border-radius: 9px;
  cursor: pointer;
  background: #f7f9fc;
}

.qs-login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 13px;
}

.qs-login-rem {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: #5b6472;
  cursor: pointer;
}

.qs-login-rem input {
  margin: 2px 0 0;
  flex: 0 0 auto;
}

.qs-login-rem-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.qs-login-rem-text em {
  margin-top: 2px;
  font-style: normal;
  font-size: 11.5px;
  color: #8b95a4;
  line-height: 1.25;
}

.qs-login-row a {
  color: #1d6fe0;
  text-decoration: none;
}

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

.qs-login-btn {
  display: block;
  width: 100%;
  padding: 12px 0;
  background: linear-gradient(135deg, #1d6fe0, #1758b8);
  color: #fff;
  border: 0;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(29, 111, 224, .28);
  transition: transform .2s, box-shadow .2s;
}

.qs-login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 18px rgba(29, 111, 224, .36);
}

.qs-login-btn:active {
  transform: none;
}

.qs-login-btn:focus-visible {
  outline: 2px solid #1f2937;
  outline-offset: 2px;
}

.qs-login-btn.loading {
  opacity: .7;
  pointer-events: none;
}

.qs-login-foot {
  font-size: 12px;
  color: #9aa5b5;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed #e5eaf2;
}

.qs-login-foot a {
  color: #1d6fe0;
  text-decoration: none;
  font-weight: 600;
}

/* ---------- 第三方登录（QQ / 支付宝） ---------- */

.qs-login-social {
  margin-top: 18px;
}

.qs-login-or {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #9aa5b5;
  font-size: 12px;
  margin-bottom: 14px;
}

.qs-login-or i {
  flex: 1;
  height: 1px;
  background: #e5eaf2;
}

.qs-qq-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  border-radius: 9px;
  border: 1px solid #bfe6f7;
  background: #f2fbff;
  color: #0b7fae;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, border-color .2s, transform .2s;
}

.qs-qq-btn:hover {
  background: #e6f7ff;
  border-color: #8fd5f0;
  transform: translateY(-1px);
}

.qs-qq-btn:focus-visible {
  outline: 2px solid #12b7f5;
  outline-offset: 2px;
}

.qs-qq-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #12b7f5;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: -.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.qs-login-hint {
  margin: 10px 0 0;
  font-size: 11px;
  color: #9aa5b5;
  line-height: 1.6;
  text-align: center;
}

/* 支付宝 */

.qs-alipay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  margin-top: 8px;
  border-radius: 9px;
  border: 1px solid #c2d9fb;
  background: #f2f7ff;
  color: #0f56c9;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, border-color .2s, transform .2s;
}

.qs-alipay-btn:hover {
  background: #e6efff;
  border-color: #9dc0f5;
  transform: translateY(-1px);
}

.qs-alipay-btn:focus-visible {
  outline: 2px solid #1677ff;
  outline-offset: 2px;
}

.qs-alipay-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1677ff;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 640px) {
  .qs-login-card { padding: 28px 22px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .qs-login-card { animation: none; }
  .qs-login-btn { transition: none; }
}
