/* =====================================================================
   login2026.css — 电脑端管理登录页独立样式（login_ma / login2_ma 共用）
   设计语言：品牌青 #33cccc 单主色 + 中性灰阶，双栏卡片（左品牌/右表单）
   ===================================================================== */

:root {
  --sklg-primary: #33cccc;
  --sklg-primary-d: #2bb8b8;
  --sklg-primary-dd: #219d9d;
  --sklg-primary-bg: #eefafa;
  --sklg-text: #1f2d3d;
  --sklg-text-2: #5e6d82;
  --sklg-text-3: #9aa7b5;
  --sklg-line: #e4e9ef;
  --sklg-danger: #e64340;
  --sklg-success: #3cb371;
  --sklg-radius: 12px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

.sklg-body {
  margin: 0;
  padding: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--sklg-text);
  background: #f2f9f9;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 背景：浅青渐变 + 两团柔光（无照片、无粒子） ---------- */
.sklg-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  background:
    radial-gradient(560px 420px at 12% 18%, rgba(51, 204, 204, 0.14), transparent 68%),
    radial-gradient(520px 400px at 88% 82%, rgba(210, 153, 194, 0.12), transparent 68%),
    linear-gradient(160deg, #f6fbfb 0%, #e9f6f6 52%, #f4eef4 100%);
}

/* ---------- 精简页头（仅 login_ma 使用） ---------- */
.sklg-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}
.sklg-top-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--sklg-text);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 1px;
}
.sklg-top-logo img {
  height: 34px;
  display: block;
  background: #fff;
  border-radius: 8px;
  padding: 4px 8px;
  box-shadow: 0 1px 4px rgba(23, 89, 89, 0.10);
}
.sklg-top-links { display: flex; align-items: center; gap: 22px; }
.sklg-top-links a {
  font-size: 14px;
  color: var(--sklg-text-2);
  text-decoration: none;
  transition: color 0.2s ease;
}
.sklg-top-links a:hover { color: var(--sklg-primary-dd); }

/* ---------- 舞台与卡片 ---------- */
.sklg-stage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 88px 20px 28px;
}
.sklg-card {
  display: flex;
  width: 100%;
  max-width: 880px;
  min-height: 540px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(23, 89, 89, 0.12), 0 4px 14px rgba(23, 89, 89, 0.06);
  overflow: hidden;
}

/* ---------- 左侧品牌面板 ---------- */
.sklg-brand {
  flex: 0 0 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 40px 32px;
  color: #fff;
  background:
    radial-gradient(420px 300px at 85% -10%, rgba(255, 255, 255, 0.16), transparent 70%),
    radial-gradient(360px 300px at -10% 105%, rgba(255, 255, 255, 0.12), transparent 70%),
    linear-gradient(155deg, #3ad0d0 0%, #33cccc 46%, #23a8b8 100%);
}
.sklg-brand-mark {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.sklg-brand-mark img {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22), 0 2px 12px rgba(255, 255, 255, 0.30);
}
.sklg-brand-title {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 2px;
}
.sklg-brand-sub {
  margin: 0 0 34px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}
.sklg-brand-feats {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sklg-brand-feats li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 2.2;
  color: rgba(255, 255, 255, 0.95);
}
.sklg-brand-feats svg { flex-shrink: 0; }
.sklg-brand-products { margin-top: 26px; }
.sklg-brand-products-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 2px;
  margin-bottom: 6px;
}
.sklg-brand-products a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  line-height: 2.1;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: color 0.2s ease;
}
.sklg-brand-products a:hover { color: #ffffff; }
.sklg-brand-products a svg {
  width: 16px;
  height: 16px;
  background: rgba(7, 55, 55, 0.25);
  border-radius: 4px;
  flex-shrink: 0;
  margin-right: 8px;
}
.sklg-brand-products a img {
  width: 16px;
  height: 16px;
  background: rgba(7, 55, 55, 0.25);
  border-radius: 4px;
  flex-shrink: 0;
  margin-right: 8px;
}
.sklg-brand-products .sklg-bp-txt { margin-right: auto; }
.sklg-brand-products a span {
  opacity: 0.55;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.sklg-brand-products a:hover span { opacity: 1; transform: translateX(3px); }

.sklg-brand-foot {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.5px;
}

/* ---------- 右侧表单区 ---------- */
.sklg-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 40px 56px 32px;
  min-width: 0;
}

/* Tab 切换（密码 / 扫码） */
.sklg-tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--sklg-line);
  margin-bottom: 26px;
}
.sklg-tab {
  appearance: none;
  background: none;
  border: none;
  padding: 10px 2px 12px;
  font-size: 16px;
  color: var(--sklg-text-2);
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
}
.sklg-tab:hover { color: var(--sklg-primary-dd); }
.sklg-tab.active {
  color: var(--sklg-text);
  font-weight: 600;
}
.sklg-tab.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--sklg-primary);
}

/* 面板 */
.sklg-panel { display: none; flex: 1; flex-direction: column; }
.sklg-panel-active { display: flex; }

/* ---------- 表单 ---------- */
.sklg-field { margin-bottom: 18px; }
.sklg-label {
  display: block;
  font-size: 13px;
  color: var(--sklg-text-2);
  margin-bottom: 7px;
}
.sklg-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.sklg-input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--sklg-line);
  border-radius: 8px;
  background: #fafcfc;
  padding: 0 14px;
  font-size: 14px;
  color: var(--sklg-text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.sklg-input::placeholder { color: #b9c3ce; }
.sklg-input:hover { border-color: #c8d4dc; }
.sklg-input:focus {
  border-color: var(--sklg-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(51, 204, 204, 0.16);
}
.sklg-input-wrap .sklg-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 6px;
}
.sklg-input-wrap .sklg-eye:hover { background: #eefafa; }
.sklg-input-wrap .sklg-eye img { display: block; }
/* 密码框给眼睛图标留位 */
.sklg-input-has-eye { padding-right: 44px; }

/* 安全验证（次要按钮） */
.sklg-captcha {
  width: 100%;
  height: 44px;
  border-radius: 8px;
  background: #fff;
  border: 1px dashed #9fdfdf;
  color: var(--sklg-primary-dd);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.2s ease;
}
.sklg-captcha:hover { background: var(--sklg-primary-bg); border-color: var(--sklg-primary); }
.sklg-captcha.captcha-done {
  border: 1px solid #bfe3cd;
  background: #f2f9f4;
  color: var(--sklg-success);
  cursor: default;
}

/* 行内错误提示（第三波 AJAX 使用） */
.sklg-form-err {
  display: none;
  margin: 0 0 14px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #fdf0ef;
  border: 1px solid #f5c8c7;
  color: var(--sklg-danger);
  font-size: 13px;
  line-height: 1.6;
}
.sklg-form-err a { color: var(--sklg-danger); font-weight: 600; }

/* 辅助行：忘记密码 */
.sklg-row-between {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* 仅剩忘记密码链接，靠右 */
  margin: -4px 0 16px;
}
.sklg-link {
  font-size: 13px;
  color: var(--sklg-primary-dd);
  text-decoration: none;
}
.sklg-link:hover { text-decoration: underline; }

/* 记住登录 */
.sklg-remember {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--sklg-text-2);
  cursor: pointer;
  user-select: none;
}
.sklg-remember input {
  width: 15px;
  height: 15px;
  accent-color: var(--sklg-primary);
  cursor: pointer;
}

/* 登录按钮（唯一主按钮） */
.sklg-submit {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 8px;
  background: var(--sklg-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 6px;
  text-indent: 6px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}
.sklg-submit:hover { background: var(--sklg-primary-d); }
.sklg-submit:active { background: var(--sklg-primary-dd); transform: translateY(1px); }
.sklg-submit.loading {
  background: var(--sklg-primary-dd);
  cursor: wait;
  letter-spacing: 0;
  text-indent: 0;
  font-size: 14px;
  font-weight: 400;
}
.login-spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: sklg-spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 7px;
}
@keyframes sklg-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 卡片抖动（登录失败） */
@keyframes sklg-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}
.sklg-card.shake { animation: sklg-shake 0.45s ease; }

/* 协议文案 */
.sklg-agree {
  margin-top: auto;
  padding-top: 18px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--sklg-text-3);
}
.sklg-agree a {
  color: var(--sklg-primary-dd);
  text-decoration: none;
}
.sklg-agree a:hover { text-decoration: underline; }

/* ---------- 扫码面板 ---------- */
.sklg-qr-tip {
  font-size: 13px;
  color: var(--sklg-text-2);
  text-align: center;
  margin-bottom: 14px;
}
.sklg-qr-tip #timer { color: var(--sklg-primary-dd); font-weight: 600; }

.sklg-qr-zone {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.sklg-qr-wrap {
  position: relative;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--sklg-line);
  border-radius: 12px;
}
/* 四角框线 */
.sklg-qr-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 3px solid var(--sklg-primary);
}
.sklg-qr-corner.tl { top: -2px; left: -2px; border-right: none; border-bottom: none; border-radius: 8px 0 0 0; }
.sklg-qr-corner.tr { top: -2px; right: -2px; border-left: none; border-bottom: none; border-radius: 0 8px 0 0; }
.sklg-qr-corner.bl { bottom: -2px; left: -2px; border-right: none; border-top: none; border-radius: 0 0 0 8px; }
.sklg-qr-corner.br { bottom: -2px; right: -2px; border-left: none; border-top: none; border-radius: 0 0 8px 0; }
.sklg-qr-wrap img { display: block; width: 196px; height: 196px; }

/* 状态遮罩（过期/已扫码/成功） */
.sklg-qr-overlay {
  position: absolute;
  top: 12px; left: 12px;
  width: 196px;
  height: 196px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--sklg-text);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  text-align: center;
  padding: 0 14px;
}
.sklg-qr-overlay .sklg-qr-status { font-size: 14px; line-height: 1.6; color: var(--sklg-text); }
.sklg-qr-overlay .sklg-qr-icon { color: var(--sklg-primary-dd); }
.sklg-qr-refresh {
  appearance: none;
  border: none;
  background: var(--sklg-primary);
  color: #fff;
  font-size: 13px;
  padding: 7px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.sklg-qr-refresh:hover { background: var(--sklg-primary-d); }

/* 扫码三步引导（第三波启用） */
.sklg-qr-steps {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin-bottom: 14px;
}
.sklg-qr-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--sklg-text-3);
}
.sklg-qr-step .sklg-qr-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #edf2f5;
  color: var(--sklg-text-3);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.sklg-qr-step.on { color: var(--sklg-text-2); }
.sklg-qr-step.on .sklg-qr-dot {
  background: var(--sklg-primary);
  color: #fff;
}
.sklg-qr-step.done .sklg-qr-dot {
  background: var(--sklg-success);
  color: #fff;
}

/* ---------- 底部版权 ---------- */
.sklg-copy {
  margin-top: 22px;
  font-size: 12px;
  color: #a9b6c2;
  text-align: center;
}
.sklg-copy a { color: #93a3b1; text-decoration: none; }

/* ---------- 响应式 ---------- */
@media screen and (max-width: 860px) {
  .sklg-brand { display: none; }
  .sklg-card { max-width: 460px; min-height: 0; }
}
@media screen and (max-width: 560px) {
  .sklg-stage { padding: 76px 12px 20px; }
  .sklg-main { padding: 28px 22px 22px; }
  .sklg-tabs { gap: 20px; }
  .sklg-top { padding: 0 16px; }
}

/* 无页头版本（login2_ma） */
.sklg-stage.sklg-stage-bare { padding: 32px 20px 28px; }
@media screen and (max-width: 560px) {
  .sklg-stage.sklg-stage-bare { padding: 20px 12px; }
}

/* 带官网固定页头的版本（login_ma）：页头86px + 80px占位 */
.sklg-stage.sklg-stage-hdr { padding-top: 36px; min-height: calc(100vh - 80px); }
@media screen and (max-width: 560px) {
  .sklg-stage.sklg-stage-hdr { padding-top: 16px; }
}

/* 微信一键登录面板（qrconnect 官方二维码容器） */
.sklg-wx-zone {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 326px;
  padding-top: 26px;
  box-sizing: border-box;
  overflow: hidden;
}
.sklg-wx-tip {
  font-size: 12px;
  color: #9aa7b5;
  text-align: center;
  margin: 14px 0 0;
}
.sklg-wx-zone iframe {
  border: none;
  transform: scale(0.75);
  transform-origin: top center;
}
