/* ==========================  登录页 · 金蝶账无忧风格（稳定版） ========================== */
.login-screen {
  position: fixed; inset: 0; z-index: 200;
  display: flex;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ========== 左侧蓝色品牌区 ========== */
.login-left {
  flex: 0 0 75%;
  max-width: 1700px;
  background: linear-gradient(155deg, #4A9BFF 0%, #2878E8 30%, #1A5DD8 70%, #134AB8 100%);
  color: #fff;
  padding: 40px 80px 48px;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
/* 左侧装饰光晕 */
.login-left::before {
  content: ""; position: absolute; top: -100px; right: -60px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.10), transparent 70%);
  pointer-events: none;
}
.login-left::after {
  content: ""; position: absolute; bottom: -150px; left: -100px;
  width: 450px; height: 450px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.07), transparent 70%);
  pointer-events: none;
}

/* 顶部栏 */
.l-top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.l-brand { display: flex; align-items: center; gap: 12px; }
.l-logo-icon {
  width: 48px; height: 48px; border-radius: 12px; overflow: hidden;
  background: #fff; box-shadow: 0 4px 14px -4px rgba(0,0,0,.18);
  display: grid; place-items: center;
}
.l-logo-icon img { width: 100%; height: 100%; object-fit: contain; }
.l-logo-text { font-size: 22px; font-weight: 800; letter-spacing: .5px; }
.l-logo-sub { font-size: 12px; opacity: .82; margin-top: 2px; letter-spacing: .3px; }

.l-top-links { display: flex; gap: 24px; font-size: 13px; }
.l-top-links a { color: rgba(255,255,255,.88); text-decoration: none; transition: color .15s; }
.l-top-links a:hover { color: #fff; }

/* 标语区 */
.l-hero { margin-top: 52px; position: relative; z-index: 1; max-width: 560px; }
.l-tagline-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.l-tagline { font-size: 17px; font-weight: 500; opacity: .92; letter-spacing: .5px; }
.l-badge {
  display: inline-block; padding: 3px 13px; border-radius: 20px;
  background: linear-gradient(135deg, #FFD54F, #FFC107);
  color: #7A4B00; font-size: 12px; font-weight: 700; letter-spacing: .5px;
  box-shadow: 0 2px 8px rgba(255,193,7,.35);
}
.l-title { margin: 0 0 18px; line-height: 1.3; }
.l-title-main { font-size: 36px; font-weight: 900; display: block; letter-spacing: 1px; }
.l-title-accent { font-size: 36px; font-weight: 900; color: #FFE066; display: inline; letter-spacing: 1px; }
.l-pill {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px; padding: 9px 24px; border-radius: 30px;
  border: 1.5px solid rgba(255,255,255,.32); font-size: 14px; font-weight: 600;
  background: rgba(255,255,255,.08); backdrop-filter: blur(4px);
  max-width: fit-content;
}

/* 特性列表 */
.l-feats { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; position: relative; z-index: 1; }
.l-feat { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 500; opacity: .94; line-height: 1.55; }
.l-feat-dot {
  width: 22px; height: 22px; border-radius: 50%; flex: 0 0 22px; display: grid; place-items: center;
  background: linear-gradient(135deg, #FFD54F, #FFB300); color: #7A4B00; font-size: 12px;
  box-shadow: 0 2px 6px rgba(255,179,0,.35); margin-top: 1px;
}

/* 左侧底部信息 */
.l-left-foot {
  margin-top: auto; padding-top: 28px; position: relative; z-index: 1;
  font-size: 11.5px; opacity: .65; line-height: 1.8;
}


/* ========== 右侧白色表单区 ========== */
.login-right {
  flex: 1; min-width: 460px; max-width: none;
  background: linear-gradient(180deg, #EFF4FF 0%, #F4F8FF 30%, #FFFFFF 75%);
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  box-shadow: -20px 0 60px -20px rgba(0,0,0,.15);
}
/* 右侧装饰光晕（呼应左侧品牌色） */
.login-right::before {
  content: ""; position: absolute; top: -80px; right: -60px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(37,99,235,.10), transparent 70%);
  pointer-events: none; z-index: 0;
}
.login-right::after {
  content: ""; position: absolute; bottom: -100px; left: -40px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(99,102,241,.08), transparent 70%);
  pointer-events: none; z-index: 0;
}
.login-right > * { position: relative; z-index: 1; }

.lr-header {
  padding: 32px 44px 0; display: flex; align-items: center; justify-content: flex-end; gap: 12px;
}
.lr-logo-sm { font-size: 15px; font-weight: 700; color: #334155; display: flex; align-items: center; gap: 7px; }
.lr-logo-sm img { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; }

.lr-form-area {
  flex: 1; display: flex; flex-direction: column;
  justify-content: center;          /* 垂直居中 */
  align-items: flex-end;             /* 水平贴右 */
  padding: 14px 48px 16px;
}

.login-card {
  width: fit-content;
  min-width: 340px;
  max-width: 100%;
  background: #fff; border: 1px solid #E2E8F0; border-radius: 16px;
  padding: 30px 34px 26px;
  box-shadow: 0 24px 60px -24px rgba(37,99,235,.25), 0 8px 24px -12px rgba(15,23,42,.06);
}
.login-brand { display: none; }

.login-card h2 { font-size: 26px; margin: 0 0 8px; color: #0F172A; font-weight: 800; letter-spacing: .3px; }
.login-card .login-sub { font-size: 13px; color: #94A3B8; margin: 0 0 28px; line-height: 1.65; }

.login-label { display: block; font-size: 13px; font-weight: 600; color: #475569; margin: 20px 0 8px; }
.login-card .input {
  width: 100%;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  padding: 13px 14px 13px 42px;
  font-size: 14.5px; color: #0F172A;
  transition: border-color .18s, box-shadow .18s, background .18s;
  box-sizing: border-box;
}
.login-card .input::placeholder { color: #CBD5E1; }
.login-card .input:focus {
  outline: none; background: #fff;
  border-color: #2563EB;
  box-shadow: 0 0 0 3.5px rgba(37,99,235,.12);
}

/* 输入框图标定位 */
.lr-input-wrap { position: relative; }
.lr-input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: #94A3B8; pointer-events: none; display: grid; place-items: center;
}

.login-err { color: #E1493B; font-size: 13px; min-height: 18px; margin: 12px 0 0; }

.btn.block {
  width: 100%; margin-top: 24px; padding: 13px; font-size: 15.5px; font-weight: 700;
  color: #fff; border: none; border-radius: 10px; cursor: pointer;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  box-shadow: 0 8px 24px -8px rgba(37,99,235,.5);
  transition: filter .15s, transform .1s, box-shadow .18s;
}
.btn.block:hover { filter: brightness(1.05); box-shadow: 0 10px 28px -8px rgba(37,99,235,.6); }
.btn.block:active { transform: translateY(1px); }

.lr-links { display: flex; justify-content: center; gap: 20px; margin-top: 18px; font-size: 13px; }
.lr-links a { color: #64748B; text-decoration: none; transition: color .15s; }
.lr-links a:hover { color: #2563EB; }

.lr-footer {
  padding: 18px 44px 24px; font-size: 11.5px; color: #CBD5E1; text-align: center; line-height: 1.8;
  border-top: 1px solid #F1F5F9; margin-top: auto;
}
.lr-footer a { color: #94A3B8; text-decoration: none; }
.lr-footer a:hover { color: #2563EB; }


/* ========== 窄屏回退 ========== */
@media (max-width: 960px) {
  .login-left { display: none; }
  .login-right { max-width: 420px; margin: 0 auto; box-shadow: none; }
  .login-screen { padding: 24px; align-items: center; background: linear-gradient(160deg, #EEF2FF 0%, #E0E7FF 50%, #C7D2FE 100%); }
  .lr-header { justify-content: center; padding-top: 24px; }
  .login-card { box-shadow: 0 20px 60px -20px rgba(37,99,235,.3); background: #fff; border-radius: 16px; padding: 32px 28px !important; box-shadow: 0 20px 60px -20px rgba(37,99,235,.25); }
}

/* 未登录时隐藏主界面，仅显示登录页 */
body.logged-out .layout { display: none !important; }
