/* ============================================================
   统一登录卡 · 与首页 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, var(--dm-accent, #1d6fe0), var(--dm-accent-hover, #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: var(--dm-accent, #1d6fe0);
  box-shadow: 0 0 0 3px rgba(var(--dm-accent-rgb, 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 var(--dm-accent, #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: center;
  gap: 5px;
  color: #5b6472;
  cursor: pointer;
}

.qs-login-row a {
  color: var(--dm-accent, #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, var(--dm-accent, #1d6fe0), var(--dm-accent-hover, #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(var(--dm-accent-rgb, 29, 111, 224), .28);
  transition: transform .2s, box-shadow .2s;
}

.qs-login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 18px rgba(var(--dm-accent-rgb, 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: var(--dm-accent, #1d6fe0);
  text-decoration: none;
  font-weight: 600;
}

@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; }
}
