/* ================================================================
   登录页 · 明亮简洁版（2026-11-10）
   - 纯浅色底，不使用深色/近黑背景
   - 保留原有 DOM 结构，只做视觉层覆盖
   - 品牌色沿用 blue-600，圆角 10/18，字号走 14/16/20/24/36 阶梯
   本文件在 theme-dark.css 之后加载，登录页在亮/暗主题下都保持明亮。
   ================================================================ */

/* ---------------- 页面容器 ---------------- */
#loginView {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 22px;
  height: auto;
  min-height: 100vh;
  padding: 48px 24px 32px;
  background: #eff3f9;
  overflow: hidden;
  position: relative;
}

/* 浅蓝色装饰圆：纯色填充，不用渐变 */
#loginView::before {
  content: '';
  position: absolute;
  width: 480px;
  height: 480px;
  top: -200px;
  right: -150px;
  border: 0;
  border-radius: 50%;
  background: #e4edfd;
}
#loginView::after {
  content: '';
  position: absolute;
  width: 380px;
  height: 380px;
  bottom: -190px;
  left: -130px;
  border: 0;
  border-radius: 50%;
  background: #e9f1ff;
}

/* ---------------- 登录卡片 ---------------- */
#loginView .login-wrap {
  display: flex;
  width: 960px;
  max-width: 100%;
  min-height: 540px;
  background: #ffffff;
  border: 1px solid #e6eaf2;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(23, 43, 77, .10), 0 2px 6px rgba(23, 43, 77, .04);
  position: relative;
  z-index: 1;
}

/* ---------------- 左侧品牌区 ---------------- */
#loginView .login-left {
  flex: 1 1 auto;
  min-width: 0;
  background: #f2f6fe;
  color: #0f172a;
  padding: 48px 48px 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
#loginView .login-left::after { content: none; display: none; }

#loginView .ll-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 44px;
  position: relative;
  z-index: 1;
}
#loginView .ll-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #2563eb;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-num);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  flex-shrink: 0;
}
#loginView .ll-brand span:last-child {
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #64748b;
  text-transform: uppercase;
}

#loginView .login-left h2 {
  font-size: 36px;
  line-height: 46px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #0f172a;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
#loginView .login-left .ll-sub {
  font-size: 14px;
  line-height: 24px;
  color: #5b6472;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

/* 三项关键规模数据 */
#loginView .ll-stats {
  display: flex;
  gap: 26px;
  margin-top: 28px;
  position: relative;
  z-index: 1;
}
#loginView .ll-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
#loginView .ll-stat + .ll-stat {
  padding-left: 26px;
  border-left: 1px solid #e0e9f8;
}
#loginView .ll-stat b {
  font-family: var(--font-num);
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  color: #2563eb;
}
#loginView .ll-stat span {
  font-size: 11px;
  line-height: 16px;
  letter-spacing: .5px;
  color: #8492a6;
}

#loginView .login-features {
  list-style: none;
  margin-top: auto;
  padding-top: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  position: relative;
  z-index: 1;
}
#loginView .login-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 0;
  font-size: 13px;
  line-height: 20px;
  color: #475569;
}
#loginView .login-features li .lf-dot {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  border-radius: 6px;
  background: #e3edff;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
#loginView .login-features li .lf-dot::before {
  content: '\2713';
  line-height: 1;
}

#loginView .ll-meta {
  margin-top: 22px;
  font-size: 12px;
  line-height: 18px;
  color: #8a93a3;
  position: relative;
  z-index: 1;
}

/* ---------------- 右侧表单区 ---------------- */
#loginView .login-right {
  width: 420px;
  flex: 0 0 420px;
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
}

/* 移动端专用的品牌行，桌面隐藏 */
#loginView .lr-brand { display: none; }

#loginView .login-right .lr-title {
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: 0;
  margin-bottom: 6px;
}
#loginView .login-right .lr-subtitle {
  font-size: 14px;
  line-height: 20px;
  color: #6b7280;
  margin-bottom: 30px;
}
#loginView .login-right label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 18px;
  color: #475569;
  font-weight: 500;
}
#loginView .login-right input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  margin-bottom: 18px;
  border: 1px solid #d9dfe9;
  border-radius: 10px;
  background: #ffffff;
  font-size: 15px;
  color: #111827;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
#loginView .login-right input::placeholder { color: #98a2b3; }
#loginView .login-right input:hover { border-color: #c3cde0; }
#loginView .login-right input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
}
#loginView .login-right .err {
  color: #dc2626;
  font-size: 12px;
  line-height: 18px;
  min-height: 18px;
  margin: -4px 0 12px;
  text-align: left;
}
#loginView .login-right .btn.primary {
  width: 100%;
  height: 46px;
  justify-content: center;
  padding: 0;
  margin-top: 2px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  background: #2563eb;
  border-color: #2563eb;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .22);
}
#loginView .login-right .btn.primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  box-shadow: 0 8px 20px rgba(29, 78, 216, .26);
}
#loginView .login-right .btn.primary:active { transform: scale(.99); }

/* ---------------- 页脚 ---------------- */
#loginView .login-foot {
  position: static;
  margin: 0;
  text-align: center;
  font-size: 12px;
  line-height: 18px;
  color: #94a3b8;
  z-index: 1;
}

/* ---------------- 暗色主题下也保持明亮登录页 ---------------- */
html[data-theme="dark"] #loginView { background: #eff3f9; }
html[data-theme="dark"] #loginView .login-wrap { background: #ffffff; border-color: #e6eaf2; box-shadow: 0 24px 64px rgba(23, 43, 77, .10), 0 2px 6px rgba(23, 43, 77, .04); }
html[data-theme="dark"] #loginView .login-left { background: #f2f6fe; }
html[data-theme="dark"] #loginView .login-right { background: #ffffff; }
html[data-theme="dark"] #loginView .login-right .lr-title { color: #0f172a; }
html[data-theme="dark"] #loginView .login-right .lr-subtitle { color: #6b7280; }
html[data-theme="dark"] #loginView .login-right label { color: #475569; }
html[data-theme="dark"] #loginView .login-right input { background: #ffffff; border-color: #d9dfe9; color: #111827; }
html[data-theme="dark"] #loginView .login-right input:hover { border-color: #c3cde0; }
html[data-theme="dark"] #loginView .login-right input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); }
html[data-theme="dark"] #loginView .login-left h2 { color: #0f172a; }
html[data-theme="dark"] #loginView .login-left .ll-sub { color: #5b6472; }
html[data-theme="dark"] #loginView .login-features li { color: #475569; }

/* ---------------- 窄屏 / 手机端 ---------------- */
@media (max-width: 880px) {
  #loginView {
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 24px 16px calc(20px + env(safe-area-inset-bottom));
    gap: 16px;
    overflow-y: auto;
  }
  #loginView::before,
  #loginView::after { display: none; }

  #loginView .login-wrap {
    display: block;
    width: 100%;
    min-height: 0;
    border-radius: 16px;
    margin-top: 0;
  }
  #loginView .login-left { display: none; }
  #loginView .login-right {
    width: 100%;
    flex: 1 1 auto;
    padding: 32px 22px 28px;
  }
  #loginView .lr-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 26px;
  }
  #loginView .lr-brand .lr-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #2563eb;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-num);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .8px;
  }
  #loginView .lr-brand span:last-child {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
  }
  #loginView .login-right .lr-title {
    font-size: 22px;
    line-height: 30px;
    margin-bottom: 4px;
  }
  #loginView .login-right .lr-subtitle {
    font-size: 13px;
    margin-bottom: 24px;
  }
  /* iOS 上小于 16px 会自动放大页面 */
  #loginView .login-right input { height: 48px; font-size: 16px; margin-bottom: 16px; }
  #loginView .login-right .btn.primary { height: 48px; font-size: 16px; }
  #loginView .login-foot { font-size: 11px; }
}

@media (max-width: 880px) and (max-height: 640px) {
  #loginView { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  #loginView .login-right input,
  #loginView .login-right .btn.primary { transition: none; }
}
