/* 后台登录页：左品牌右表单的双栏卡片 */

body.lg-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #EEF1F8;
  background-image:
    radial-gradient(900px 460px at 8% -10%, rgba(90, 103, 216, .22), transparent 62%),
    radial-gradient(760px 420px at 100% 108%, rgba(124, 138, 232, .18), transparent 60%);
}

.lg-card {
  display: flex;
  width: 880px;
  max-width: 100%;
  min-height: 486px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(23, 32, 56, .16);
  overflow: hidden;
}

/* ---------- 左侧品牌区 ---------- */
.lg-brand {
  flex: 0 0 348px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 38px 34px;
  background: linear-gradient(160deg, #232B44 0%, #1B2231 52%, #171B2B 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.lg-brand::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  right: -120px; bottom: -130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 103, 216, .55), transparent 68%);
}
.lg-brand-top { position: relative; z-index: 1; }
.lg-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 46px;
}
.lg-logo-mark {
  width: 40px; height: 40px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, #7C8AE8, #4C51BF);
  box-shadow: 0 8px 22px rgba(90, 103, 216, .48);
  font-size: 18px;
  font-weight: 600;
}
.lg-logo-name { font-size: 16px; font-weight: 600; letter-spacing: .4px; }
.lg-logo-sub { font-size: 11.5px; color: #8A95AB; letter-spacing: 1.6px; margin-top: 2px; }

.lg-brand h2 {
  margin: 0 0 14px;
  font-size: 25px;
  line-height: 1.42;
  font-weight: 600;
  letter-spacing: .5px;
  color: #fff;
}
.lg-brand .lg-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.9;
  color: #9AA5BA;
}
.lg-points {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
}
.lg-points li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: #A9B4C6;
  margin-bottom: 11px;
}
.lg-points i { color: #7C8AE8; font-size: 12px; }

.lg-brand-foot {
  position: relative;
  z-index: 1;
  font-size: 11.5px;
  color: #5E697F;
}

/* ---------- 右侧表单区 ---------- */
.lg-form {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 46px 46px 40px;
  min-width: 0;
}
.lg-form h1 {
  margin: 0 0 8px;
  font-size: 23px;
  font-weight: 600;
  color: #1A202C;
  letter-spacing: .3px;
}
.lg-form .lg-sub {
  margin: 0 0 28px;
  font-size: 13px;
  color: #718096;
}

.lg-field { margin-bottom: 16px; }
.lg-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 500;
  color: #4A5568;
}
.lg-input-wrap { position: relative; }
.lg-input-wrap > i {
  position: absolute;
  left: 13px; top: 50%;
  margin-top: -7px;
  font-size: 13px;
  color: #A0AEC0;
  pointer-events: none;
}
.lg-field input {
  width: 100%;
  height: 44px;
  padding: 0 13px 0 36px;
  font-family: inherit;
  font-size: 14px;
  color: #2D3748;
  background: #FBFCFE;
  border: 1px solid #E6E9EF;
  border-radius: 9px;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.lg-field input::placeholder { color: #A0AEC0; }
.lg-field input:focus {
  background: #fff;
  border-color: #5A67D8;
  box-shadow: 0 0 0 3px rgba(90, 103, 216, .13);
}

.lg-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 10px 13px;
  border: 1px solid #FED7D7;
  border-radius: 9px;
  background: #FEDFDF;
  color: #C53030;
  font-size: 13px;
}

.lg-submit {
  width: 100%;
  height: 46px;
  margin-top: 8px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, #6470DE, #4C51BF);
  box-shadow: 0 6px 18px rgba(90, 103, 216, .3);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  letter-spacing: 3px;
  cursor: pointer;
  transition: filter .15s, transform .1s;
}
.lg-submit:hover { filter: brightness(1.06); }
.lg-submit:active { transform: translateY(1px); }

.lg-tip {
  margin: 22px 0 0;
  font-size: 12px;
  line-height: 1.75;
  color: #A0AEC0;
  text-align: center;
}

/* ---------- 滑块人机验证码 ---------- */
.lg-cap { position: relative; margin: 4px 0 2px; }

.lg-cap-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #E6E9EF;
  border-radius: 9px;
  background: #F7FAFC;
  color: #718096;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  transition: border-color .15s, background .15s, color .15s;
}
.lg-cap-bar:hover { border-color: #CBD5E0; }
.lg-cap-bar.is-ok { border-color: #48BB78; background: #F0FFF4; color: #2F855A; }
.lg-cap-bar.is-ok .fa { color: #48BB78; }

.lg-cap-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  width: 320px;
  padding: 10px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(45, 55, 72, .18);
  z-index: 60;
}

.cap-stage {
  position: relative;
  width: 300px;
  height: 220px;
  border-radius: 8px;
  overflow: hidden;
  background: #EDF2F7;
}
.cap-bg { display: block; width: 300px; height: 220px; }
.cap-piece {
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  cursor: grab;
  touch-action: none;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35));
}
.cap-piece:active { cursor: grabbing; }
.cap-tip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  padding: 6px 10px;
  font-size: 12px;
  color: #fff;
  background: rgba(229, 62, 62, .85);
  text-align: center;
}
.cap-tip.is-show { display: block; }

.cap-track {
  position: relative;
  margin-top: 10px;
  width: 300px;
  height: 40px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  background: #EDF2F7;
  overflow: hidden;
}
.cap-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: rgba(90, 103, 216, .18);
}
.cap-track-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #A0AEC0;
  pointer-events: none;
}
.cap-handle {
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 38px;
  border-radius: 7px;
  background: linear-gradient(135deg, #6470DE, #4C51BF);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
}
.cap-handle:active { cursor: grabbing; }
.cap-refresh {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: #fff;
  color: #718096;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(45, 55, 72, .15);
}
.cap-refresh:hover { color: #5A67D8; }

/* ---------- 窄屏 ---------- */
@media (max-width: 860px) {
  .lg-card { flex-direction: column; min-height: 0; width: 440px; }
  .lg-brand { flex: none; padding: 24px 26px; }
  .lg-logo { margin-bottom: 18px; }
  .lg-brand h2 { font-size: 19px; margin-bottom: 6px; }
  .lg-brand .lg-desc, .lg-points, .lg-brand-foot { display: none; }
  .lg-form { padding: 30px 26px 28px; }
}
