/* ==========================================================================
   欣欣布谷 · 四系统统一登录页（居中排版）
   --------------------------------------------------------------------------
   由 config/account-security.cjs 挂到 /brand/login-center.css，
   四个系统在各自 index.html 的样式表之后引入。
   以后要调登录页版式，只改这一份文件，四个系统同时生效。
   设计：品牌区居中（Logo / 系统名 / 副标题），表单保持左对齐便于填写；
        顶部品牌色渐变条、深蓝光晕背景、底部统一版权行。
   ========================================================================== */

/* ---------- A. 统一工作台 4100 / 项目管理 4001（同一套 .login > .box） ---------- */
.login {
  position: relative; padding: 32px 16px;
  background:
    radial-gradient(circle at 16% 14%, rgba(96,165,250,.20), transparent 42%),
    radial-gradient(circle at 86% 84%, rgba(247,126,6,.14), transparent 40%),
    linear-gradient(135deg, #0f2146, #1a2f5c 55%, #1d4ed8);
}
.login .box {
  position: relative; overflow: hidden; text-align: center;
  width: 420px; max-width: 92vw; border-radius: 18px; padding: 38px 38px 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(3,12,32,.38), 0 2px 8px rgba(3,12,32,.10);
}
.login .box::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, #f77e06 0%, #fbbf24 32%, #2563eb 100%);
}
.login .box::after {
  content: '© 2026 CoreLed · 企业供应链协同平台';
  display: block; margin-top: 20px; padding-top: 14px; border-top: 1px solid #eef2f7;
  font-size: 11px; color: #a8b2c2; letter-spacing: .4px; line-height: 1.5;
}
.login .bl-login { display: block; width: 196px; max-width: 80%; height: auto; margin: 2px auto 8px; }
.login h1 {
  text-align: center; font-size: 25px; color: var(--navy);
  font-weight: 800; letter-spacing: .6px; margin-bottom: 5px;
}
.login .sub {
  text-align: center; font-size: 12.5px; color: var(--muted); margin: 0;
  padding-bottom: 18px; border-bottom: 1px solid #eef2f7; line-height: 1.6;
}
.login .err { text-align: left; margin-top: 14px; }
.login .field { text-align: left; margin-top: 16px; margin-bottom: 0; }
.login .field label { font-size: 12.5px; font-weight: 600; color: #475569; margin-bottom: 6px; }
.login .field input { padding: 11px 13px; border-radius: 9px; font-size: 13.5px; }
.login .pwd-wrap input { padding-right: 58px; }
.login .pwd-note { text-align: left; }
.login .btn {
  width: 100%; margin-top: 22px; padding: 12px 18px; border-radius: 9px; font-size: 14px;
  letter-spacing: 2px; background: linear-gradient(90deg, #2563eb, #3b82f6);
  box-shadow: 0 6px 16px rgba(37,99,235,.22);
}
.login .btn:hover { background: linear-gradient(90deg, #1d4ed8, #2563eb); }
.login .btn:disabled { box-shadow: none; }
.login .hint {
  text-align: center; margin-top: 18px; padding: 12px 14px; border-radius: 10px;
  background: linear-gradient(180deg, #f8fafc, #f1f5f9); border: 1px solid #e8edf4; line-height: 1.8;
}
.login .hint b { display: block; text-align: center; color: #475569; font-size: 12px; margin-bottom: 3px; }
.login .demo-grid { text-align: left; }

/* ---------- B. 培训平台 4000（.login-wrap > .login-box） ---------- */
.login-wrap {
  padding: 32px 16px;
  background:
    radial-gradient(circle at 16% 14%, rgba(96,165,250,.20), transparent 42%),
    radial-gradient(circle at 86% 84%, rgba(247,126,6,.14), transparent 40%),
    linear-gradient(135deg, #0f2146, #1a2f5c 55%, #1d4ed8);
}
.login-box {
  position: relative; overflow: hidden; text-align: center; max-width: 410px;
  border-radius: 18px; padding: 38px 34px 24px;
  box-shadow: 0 24px 70px rgba(3,12,32,.38), 0 2px 8px rgba(3,12,32,.10);
}
.login-box::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, #f77e06 0%, #fbbf24 32%, #2563eb 100%);
}
.login-box::after {
  content: '© 2026 CoreLed · 企业供应链协同平台';
  display: block; margin-top: 20px; padding-top: 14px; border-top: 1px solid #eef2f7;
  font-size: 11px; color: #a8b2c2; letter-spacing: .4px; line-height: 1.5;
}
.login-box .brand .bl-login { width: 196px; max-width: 80%; margin: 2px auto 8px; }
.login-box .sub {
  text-align: center; font-size: 15px; color: var(--navy); font-weight: 700;
  margin: 0; padding-bottom: 18px; border-bottom: 1px solid #eef2f7; line-height: 1.6;
}
.login-box label { text-align: left; }
.login-box input { text-align: left; padding: 11px 13px; border-radius: 9px; }
.login-box .pwd-wrap input { padding-right: 58px; }
.login-box .pwd-note { text-align: left; }
.login-box .login-more { text-align: center; }
.login-box .forgot-box { text-align: left; }

/* ---------- C. 供应链协同 3999（左右分栏） ---------- */
.login-brand-inner { text-align: center; margin: 0 auto; }
.login-logo { margin-left: auto; margin-right: auto; margin-bottom: 22px; }
.login-brand h1 { font-size: 27px; }
.login-sub { margin-bottom: 28px; }
.login-features { display: inline-flex; text-align: left; gap: 12px; margin-top: 4px; }
.login-card {
  position: relative; overflow: hidden; border-radius: 18px; padding: 38px 34px 26px;
  box-shadow: 0 24px 70px rgba(3,12,32,.14);
}
.login-card::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, #f77e06 0%, #fbbf24 32%, #2563eb 100%);
}
.login-card::after {
  content: '© 2026 CoreLed · 企业供应链协同平台';
  display: block; margin-top: 20px; padding-top: 14px; border-top: 1px solid #eef2f7;
  font-size: 11px; color: #a8b2c2; letter-spacing: .4px; line-height: 1.5; text-align: center;
}
.login-card h2, .login-card .login-tip { text-align: center; }
.login-card .form-item { text-align: left; }

/* ---------- 登录方式切换（2026-11-29） ---------- */
.login-tabs {
  display: flex; gap: 6px; margin: 4px 0 18px; padding: 3px;
  background: #f1f5f9; border-radius: 10px;
}
.login-tab {
  flex: 1; padding: 7px 0; border: 0; border-radius: 8px; background: transparent;
  color: #64748b; font-size: 13px; font-weight: 500; cursor: pointer; transition: all .15s;
}
.login-tab:hover { color: #1e293b; }
.login-tab.active { background: #fff; color: #2563eb; box-shadow: 0 1px 4px rgba(15,33,70,.10); }
.code-wrap { display: flex; gap: 8px; align-items: stretch; }
.code-wrap input { flex: 1; min-width: 0; }
.code-wrap .btn { flex-shrink: 0; white-space: nowrap; padding: 0 12px; font-size: 12.5px; height: 40px; }
.code-wrap .btn:disabled { opacity: .6; cursor: not-allowed; }

/* ---------- 小屏 ---------- */
@media (max-width: 520px) {
  .login .box, .login-box, .login-card { padding: 30px 22px 20px; }
  .login .bl-login, .login-box .brand .bl-login { width: 168px; }
  .login h1, .login-brand h1 { font-size: 22px; }
}

/* ---------- 口令找回 / 改密（2026-11-26） ----------
   口令找回入口只有一个：登录按钮正下方的「忘记密码？」。
   曾经的右下角浮动胶囊（🔑 忘记密码）已删除，不要再引用 .forgot-fab。 */
/* 忘记密码：独立一行、靠右、与登录按钮留 10px 间距。
   原来用 margin-top:-8px 往上提，正好压在登录按钮右下角，看着像挤在一起。 */
.login-links { display: flex; justify-content: flex-end; margin: 10px 2px 2px; line-height: 1.6; }
.login-links a { font-size: 12.5px; color: #2563eb; text-decoration: none; }
.login-links a:hover { text-decoration: underline; }
.forgot-tip {
  background: #f1f5f9; border-left: 3px solid #2563eb; padding: 10px 12px;
  border-radius: 6px; font-size: 12.5px; color: #475569; line-height: 1.75; margin-bottom: 14px;
}
.forgot-ok {
  background: #ecfdf5; border-left: 3px solid #16a34a; padding: 12px 14px;
  border-radius: 6px; font-size: 13px; color: #166534; line-height: 1.8;
}
.pwd-apply-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #475569; }

/* 找回密码弹窗：底部「改用管理员审批」入口 */
.forgot-alt { margin-top: 14px; text-align: center; font-size: 12.5px; color: #64748b; }
.forgot-alt a { color: #2563eb; text-decoration: none; font-weight: 600; }
.forgot-alt a:hover { text-decoration: underline; }

/* 验证码一行：输入框占满剩余宽度，发送按钮固定宽度不换行 */
.fp-code-row { display: flex; align-items: stretch; gap: 8px; }
.fp-code-row input { flex: 1 1 auto; min-width: 0; }
.fp-code-row .btn {
  flex: 0 0 auto; width: 118px; padding: 0 10px; font-size: 13px;
  white-space: nowrap; border-radius: 8px;
}
.fp-code-row .btn:disabled { opacity: .6; cursor: not-allowed; }
#fp-tip2 { margin: 10px 0 2px; }
