/* ============================================================
   管理端登录页 —— 技术经理人培训平台 2.0（云南）
   依赖：css/ds.css（设计系统变量与基础类）
   ============================================================ */

html, body { height: 100%; }
body {
  background: #eef2f7;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(900px 460px at 50% -10%, #e2ecfa, transparent 70%);
}

/* 居中舞台 */
.stage {
  position: relative;
  width: min(1060px, 100%);
  min-height: 600px;
  display: flex;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 60px rgba(16,40,80,.16);
}

/* ---------- 左：品牌区 ---------- */
.lg-l {
  flex: 0 0 44%;
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(152deg, #0a2440 0%, #123d64 55%, #17548a 100%);
  padding: 44px 42px;
  display: flex;
  flex-direction: column;
}
.lg-l .grid {
  position: absolute; inset: 0; opacity: .45;
  background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 42px 42px;
}
.lg-l .g1 {
  position: absolute; width: 340px; height: 340px; right: -130px; top: -110px;
  border-radius: 50%; background: radial-gradient(circle, rgba(58,160,255,.30), transparent 68%);
}
.lg-l .g2 {
  position: absolute; width: 260px; height: 260px; left: -110px; bottom: -100px;
  border-radius: 50%; background: radial-gradient(circle, rgba(224,130,15,.18), transparent 68%);
}
.lg-l > * { position: relative; z-index: 2; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand .mk {
  width: 42px; height: 42px; border-radius: 11px; flex: 0 0 42px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #3a9bff, #1455b6);
  box-shadow: 0 6px 16px rgba(20,85,182,.45);
}
.brand .mk svg { width: 24px; height: 24px; stroke: #fff; }
.brand .n { font-size: 15.5px; font-weight: 600; letter-spacing: .4px; line-height: 1.35; }
.brand .s { font-size: 11.5px; color: #9db8d4; margin-top: 2px; }

.mid { margin: auto 0; padding: 34px 0; }
.mid h1 { font-size: 27px; font-weight: 600; line-height: 1.4; letter-spacing: .3px; }
.mid h1 em { font-style: normal; color: #63b3ff; }
.mid .line {
  width: 46px; height: 3px; border-radius: 2px; margin: 20px 0 18px;
  background: linear-gradient(90deg, #3a9bff, #e0820f);
}
.mid .lead { font-size: 12.5px; color: #a9c3dd; line-height: 1.95; }

.lg-foot { font-size: 11.5px; color: #7b96b4; line-height: 1.9; }

/* ---------- 右：登录区 ---------- */
.lg-r { flex: 1; display: flex; align-items: center; justify-content: center; padding: 44px 40px; }
.lg-card { width: 100%; max-width: 330px; }

.lg-card .hd { margin-bottom: 24px; }
.lg-card .hd h2 { font-size: 20px; font-weight: 600; }
.lg-card .hd p { font-size: 12px; color: var(--t3); margin-top: 6px; }

.field { margin-bottom: 15px; }
.field .fl { font-size: 12.5px; color: var(--t2); margin-bottom: 7px; }
.field .req { color: var(--danger); }
.inp-lg {
  height: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: 8px;
  width: 100%; background: #fff; font-size: 13.5px; transition: .15s;
}
.inp-lg:focus { outline: 0; border-color: #9dc4f7; box-shadow: 0 0 0 3px var(--primary-50); }
.inp-lg::placeholder { color: var(--t4); }
.inp-lg.bad { border-color: #e8a8a8; background: #fffafa; }

.with { position: relative; }
.with .inp-lg { padding-right: 44px; }
.with .eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: 6px; color: var(--t3); cursor: pointer;
}
.with .eye:hover { background: #f2f6fb; color: var(--t2); }
.with .eye svg { width: 17px; height: 17px; }

/* 图形验证码 */
.code-row { display: flex; gap: 10px; align-items: center; }
.code-row .inp-lg { flex: 1; min-width: 0; }
.capbox {
  /* ⚠️ 尺寸必须与 config/captcha.php 的 imageW:imageH 同比例（208:65 = 160:50 = 3.2），
     否则 img 用 object-fit:cover 铺满时会把左右两侧的验证码字符裁掉。 */
  width: 160px; height: 50px; flex: 0 0 160px;
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  cursor: pointer; background: #f7fafd; position: relative;
}
.capbox img { width: 100%; height: 100%; display: block; object-fit: cover; }
.capbox:hover { border-color: #9dc4f7; }
.capbox .rf {
  position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
  background: rgba(255,255,255,.72); color: var(--primary); font-size: 11.5px; font-weight: 500;
}
.capbox:hover .rf { display: flex; }

.err {
  display: none; color: var(--danger); font-size: 11.5px; margin-top: 7px;
  align-items: center; gap: 5px;
}
.err.on { display: flex; }
.err svg { width: 13px; height: 13px; flex: 0 0 13px; }

.row-between { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 20px; }
.ck-line { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--t2); cursor: pointer; }
.ck-line input { width: 14px; height: 14px; accent-color: var(--primary); cursor: pointer; }
.row-between a { font-size: 12.5px; color: var(--primary); }
.row-between a:hover { text-decoration: underline; }

.btn-login {
  width: 100%; height: 43px; border-radius: 8px; font-size: 14.5px; font-weight: 500;
  background: linear-gradient(180deg, #2a7dea, #1455b6); color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 4px 14px rgba(26,108,224,.28); transition: .15s;
}
.btn-login:hover { background: linear-gradient(180deg, #2f86f5, #1157bd); }
.btn-login:active { transform: translateY(1px); }
.btn-login.loading { opacity: .72; pointer-events: none; }

.lg-note {
  margin-top: 16px; display: flex; gap: 8px; padding: 10px 12px; border-radius: 8px;
  background: var(--info-bg); border: 1px solid var(--info-line); color: #12488f;
  font-size: 11.5px; line-height: 1.7;
}
.lg-note svg { width: 14px; height: 14px; flex: 0 0 14px; margin-top: 2px; }

.lg-help {
  margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line);
  font-size: 11.5px; color: var(--t3); line-height: 1.85;
}

@media (max-width: 900px) {
  body { padding: 0; }
  .stage { flex-direction: column; border-radius: 0; min-height: 100%; width: 100%; }
  .lg-l { flex: 0 0 auto; padding: 32px 26px 28px; }
  .mid { margin: 0; padding: 22px 0 0; }
  .mid h1 { font-size: 22px; }
  .lg-foot { display: none; }
  .lg-r { padding: 30px 26px 40px; }
  .lg-card { max-width: 360px; }
}
