/* ============ 登录页 ============
   配色与电脑端 / 企微端同一套品牌色：主 #e8422c，辅 #fa6419，深色 #6d1d12
   说明：本页可能对公网开放，页面内只放「产品能力」，不放任何具体企业的
        岗位数 / 部门数 / 人员数，也不放演示账号与默认口令。
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
:root { --brand: #e8422c; --brand-dk: #b8331f; --brand-dp: #6d1d12; --accent: #fa6419; --brand-lt: #fdecea; }
html, body { height: 100%; }
body { font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; background: #f7f4f2; color: #1b1b1b; font-size: 14px; -webkit-font-smoothing: antialiased; }
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 470px; }

/* ================= 左侧视觉区 ================= */
.tech { position: relative; overflow: hidden; background: linear-gradient(155deg, #5c180f 0%, #8f2513 42%, #c9341c 78%, #d93a20 100%); color: #fff; display: flex; flex-direction: column; justify-content: center; }
.tech::after {                      /* 极淡的网格，提升质感 */
  content: ""; position: absolute; inset: 0; opacity: .05; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 64px 64px;
}
.tech canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.tech-glow { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.tech-glow.g1 { width: 460px; height: 460px; left: -140px; top: -150px; background: rgba(250, 100, 25, .38); }
.tech-glow.g2 { width: 520px; height: 520px; right: -160px; bottom: -190px; background: rgba(255, 190, 120, .2); }
.tech-content { position: relative; z-index: 2; padding: 0 60px 168px; max-width: 660px; animation: up .7s ease both; }
.tech-kicker { font-size: 12.5px; letter-spacing: 4.5px; opacity: .72; margin-bottom: 22px; font-weight: 600; }
.tech-title { font-size: 40px; font-weight: 800; line-height: 1.34; letter-spacing: 2px; text-shadow: 0 3px 16px rgba(0, 0, 0, .22); }
.tech-line { width: 66px; height: 4px; border-radius: 3px; background: linear-gradient(90deg, #ffd8a8, #fa6419); margin: 26px 0; }
.tech-feats { list-style: none; }
.tech-feats li { display: flex; align-items: center; gap: 12px; padding: 9px 0; font-size: 14.5px; opacity: .94; }
.tech-feats i { font-style: normal; color: #ffd8a8; font-size: 12px; }
.tech-orbit { position: absolute; right: -180px; bottom: -180px; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); z-index: 1; }
.tech-orbit::before { content: ""; position: absolute; inset: 70px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12); }
.tech-orbit::after { content: ""; position: absolute; inset: 150px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .1); }

/* 通用能力（不写死数字） */
.tech-caps { position: absolute; left: 60px; right: 60px; bottom: 52px; z-index: 2; display: flex; flex-wrap: wrap; gap: 22px 44px; animation: up .9s ease both; }
.tech-caps .c { min-width: 118px; }
.tech-caps .c b { display: block; font-size: 15.5px; font-weight: 700; letter-spacing: .5px; }
.tech-caps .c span { display: block; font-size: 12px; opacity: .7; margin-top: 5px; line-height: 1.6; }

@keyframes up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ================= 右侧登录区 ================= */
.login-side { background: #fff; display: flex; flex-direction: column; justify-content: center; padding: 42px 46px; position: relative; animation: up .5s ease both; }
.login-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 32px; }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, #f2563c, #b8331f); display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; font-weight: 800; box-shadow: 0 3px 12px rgba(184, 51, 31, .3); flex: none; }
.brand-name { font-size: 16.5px; font-weight: 800; line-height: 1.3; min-width: 0; }
.brand-name span { display: block; }
.brand-name small { display: block; font-size: 11.5px; color: #8a8f99; font-weight: 400; letter-spacing: .5px; margin-top: 3px; }
.slogan { font-size: 12px; color: #a2a8b4; letter-spacing: 1px; line-height: 1.7; text-align: right; max-width: 150px; padding-top: 3px; }

.login-tabs { display: flex; gap: 24px; border-bottom: 1px solid #eceef2; margin-bottom: 22px; }
.login-tabs .tab { padding: 9px 0; font-size: 15px; color: #8a8f99; cursor: pointer; border-bottom: 2.5px solid transparent; margin-bottom: -1px; font-weight: 600; }
.login-tabs .tab.active { color: var(--brand); border-color: var(--brand); }
.pane { display: none; }
.pane.active { display: block; }

/* 输入框 */
.field2 { position: relative; margin-bottom: 14px; }
.field2 .f-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-size: 15px; opacity: .45; }
.field2 .f-input { width: 100%; padding: 13px 14px 13px 41px; border: 1px solid #dfe3ea; border-radius: 11px; background: #fafbfc; outline: none; font-size: 14px; transition: .16s; color: #1b1b1b; }
.field2 .f-input::placeholder { color: #b0b6c2; }
.field2 .f-input:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(232, 66, 44, .1); }
.field2 .f-pass { padding-right: 64px; }
.f-eye { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); border: none; background: transparent; color: #8a8f99; font-size: 12.5px; padding: 7px 9px; border-radius: 7px; cursor: pointer; font-family: inherit; }
.f-eye:hover { background: #f2f3f5; color: var(--brand); }
.f-eye.on { color: var(--brand); }

/* 大写锁定提示 */
.cap-tip { margin: -4px 0 10px; padding: 8px 11px; border-radius: 9px; font-size: 12.5px; line-height: 1.7; background: #fff8e8; color: #b45309; border: 1px solid #f6e3c0; }

.row-between { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 18px; font-size: 13px; }
.check { display: inline-flex; align-items: center; gap: 6px; color: #5a6478; cursor: pointer; }
.check input { accent-color: var(--brand); width: 15px; height: 15px; }
.link { color: var(--brand); }

/* 通用提示框（忘记密码等） */
.tip-box { margin: -6px 0 16px; padding: 11px 13px; border-radius: 10px; font-size: 12.5px; line-height: 1.9; background: #f7f9fc; border: 1px solid #e6ebf3; color: #5a6478; }
.tip-box b { color: #2b3445; }

.login-btn { width: 100%; padding: 14px; border: none; border-radius: 11px; background: linear-gradient(135deg, #f2563c, #d92f19); color: #fff; font-size: 16px; font-weight: 700; letter-spacing: 3px; cursor: pointer; transition: .18s; box-shadow: 0 5px 16px rgba(217, 47, 25, .26); }
.login-btn:hover { background: linear-gradient(135deg, #ff6448, #c92a15); box-shadow: 0 7px 20px rgba(217, 47, 25, .32); }
.login-btn:active { transform: translateY(1px); box-shadow: 0 3px 10px rgba(217, 47, 25, .24); }
.login-btn:disabled { opacity: .62; cursor: not-allowed; transform: none; }
.err { color: var(--brand); font-size: 13px; min-height: 20px; margin-top: 10px; text-align: center; line-height: 1.6; }

.login-footer { font-size: 12px; color: #b6bcc7; margin-top: 22px; text-align: center; line-height: 1.8; }
.login-footer .ver { font-size: 11.5px; color: #c8cdd6; margin-top: 3px; }

/* 一键登录块 */
.wx-box { margin-top: 20px; padding-top: 19px; border-top: 1px dashed #eceef2; }
.wx-title { font-size: 12.5px; color: #a2a8b4; text-align: center; margin-bottom: 12px; position: relative; }
.wx-title::before, .wx-title::after { content: ""; position: absolute; top: 50%; width: 62px; height: 1px; background: #eceef2; }
.wx-title::before { left: 0; }
.wx-title::after { right: 0; }
.wx-btn { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; padding: 12px; border: 1px solid #d9ecdd; border-radius: 11px; background: #f2fbf5; color: #1f7d47; font-size: 14px; font-weight: 700; cursor: pointer; transition: .16s; font-family: inherit; }
.wx-btn:hover { background: #e8f6ec; border-color: #b8e2c4; }
.wx-btn .wi { width: 22px; height: 22px; border-radius: 6px; background: #09bb07; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.wx-tip { font-size: 11.5px; color: #b6bcc7; text-align: center; margin-top: 9px; line-height: 1.7; }

/* 换成 LOGO 图片时去掉文字标的底色（由 applyBrand 加 .has-img） */
.brand-mark.has-img { background: none; box-shadow: none; overflow: hidden; }
.brand-mark.has-img img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ================= 窄屏 / 手机 =================
   不再整块隐藏左侧品牌区（那样手机上只剩一个表单，显得单薄），
   改成顶部一条紧凑的品牌头 + 能力标签。 */
@media (max-width: 980px) {
  .login-wrap { grid-template-columns: 1fr; }
  .tech { min-height: 0; padding-bottom: 20px; display: block; justify-content: flex-start; }
  .tech-content { padding: 30px 22px 0; }
  .tech-kicker { letter-spacing: 3px; margin-bottom: 14px; font-size: 11.5px; }
  .tech-title { font-size: 25px; letter-spacing: 1px; }
  .tech-line { width: 48px; height: 3px; margin: 16px 0 0; }
  .tech-feats { display: none; }
  .tech-orbit, .tech-glow.g2 { display: none; }
  .tech-caps { position: static; padding: 18px 22px 0; gap: 8px; right: auto; bottom: auto; }
  .tech-caps .c { min-width: 0; flex: 0 0 auto; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); border-radius: 99px; padding: 6px 13px; }
  .tech-caps .c b { font-size: 12.5px; font-weight: 600; letter-spacing: 0; }
  .tech-caps .c span { display: none; }
  .login-side { padding: 26px 22px 34px; justify-content: flex-start; }
  .login-top { margin-bottom: 24px; }
  .slogan { display: none; }
}

@media (max-width: 400px) {
  .tech-title { font-size: 22px; }
}
