/* ===== styles-base.cssh@@reset / body / ڨa	+ {UuaG / tabs / k / 	
    styles.css6b	5 *{	 base  layout  components  pages  chat z}
   ӜUW Tzt}z ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
/* 全局隐藏滚动条但保留鼠标滚轮/触控板滚动能力 */
html { scrollbar-width: none; -ms-overflow-style: none; }
::-webkit-scrollbar { width: 0; height: 0; display: none; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f3f4f6; color: #1f2937; font-size: 14px; }

/* 登录：卡片整体偏右（右侧留空隙，不贴边、不居中） */
.login-wrap { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: flex-end; background: linear-gradient(135deg, #1e3a8a, #2563eb); padding: 24px 12% 24px 24px; }
.login-card { position: relative; z-index: 1; background: #fff; width: 380px; max-width: 100%; height: 520px; min-height: 520px; padding: 32px; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.2); display: flex; flex-direction: column; }
/* 登录主容器：flex 纵向，第三方登录按钮始终位于卡片内部底部 */
#pageLogin { display: flex; flex-direction: column; width: 100%; flex: 1 1 auto; min-height: 0; }
/* 三个登录面板：默认隐藏，撑开内容；卡片高度固定，切换不跳动 */
#pageLogin > div[id^="login"] { display: none; flex: 1 1 auto; flex-direction: column; min-height: 0; }
/* 第三方登录：仅密码登录页底部，压缩为一行（分隔线 + 文字与图标同行） */
#thirdparty-wrap { margin-top: auto; display: flex; flex-direction: column; }
#thirdparty-wrap .tp-line { border-top: 1px solid #eee; margin: 0 0 12px; }
#thirdparty-wrap .tp-row { display: flex; align-items: center; justify-content: center; gap: 14px; }
#thirdparty-wrap .tp-label { font-size: 12px; color: #94a3b8; white-space: nowrap; }
#thirdparty-wrap .tp-icons { display: flex; gap: 10px; }
#thirdparty-wrap .tp-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease; }
#thirdparty-wrap .tp-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.18); }
#thirdparty-wrap .tp-qq { background: #12B7F5; }
#thirdparty-wrap .tp-wx { background: #07C160; }
.login-tabs { display: flex; gap: 24px; margin-bottom: 18px; border-bottom: 1px solid #eef2f7; }
.login-tabs .ltab { font-size: 16px; padding: 8px 2px; cursor: pointer; color: #94a3b8; position: relative; }
.login-tabs .ltab.active { color: #2563eb; font-weight: 700; }
.login-tabs .ltab.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: #2563eb; }
.qr-box { margin: 24px auto 18px; width: 200px; height: 200px; border: 2px dashed #cbd5e1; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #94a3b8; background: #f8fafc; }
.qr-box .qr-icon { font-size: 48px; }
.qr-box .qr-placeholder { margin-top: 8px; font-size: 13px; }
.qr-tip { text-align: center; color: #64748b; font-size: 14px; line-height: 1.7; }
.qr-tip .qr-soon { color: #f59e0b; font-size: 12px; }
/* 扫码登录：二维码固定 150px，居中，炫彩渐变 + 中心站标，避免容器跳动 */
#scanQr { position: relative; min-height: 150px; display: flex; justify-content: center; align-items: center; }
#scanQr svg { width: 150px !important; height: 150px !important; display: block; border-radius: 8px; }
.scan-center-logo { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 8px; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0,0,0,.18); overflow: hidden; }
.scan-center-logo img { width: 100%; height: 100%; object-fit: cover; }
/* 账号管理：租户筛选工具栏 */
.pf-users-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.pf-users-toolbar .form-input { min-width: 220px; }
.scan-center-logo { font-weight: 700; color: #2563eb; font-size: 18px; }
.login-card h2 { margin: 8px 0 2px; }
.login-card .sub { color: #6b7280; font-size: 12px; margin-bottom: 18px; }
.login-title { margin: 0 0 2px; font-size: 22px; color: #1f2937; font-weight: 700; }
.login-sub { color: #6b7280; font-size: 12px; margin-bottom: 18px; min-height: 1px; }
.sms-row { display: flex; gap: 8px; margin-top: 4px; }
.sms-row .inp { flex: 1; }
.btn-sms { flex: 0 0 auto; padding: 0 14px; background: #fff; color: #2563eb; border: 1px solid #2563eb; border-radius: 6px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.btn-sms:hover { background: #eff6ff; }
.btn-sms:disabled { color: #9ca3af; border-color: #d1d5db; cursor: not-allowed; background: #fff; }
.seg { display: flex; gap: 8px; margin-top: 4px; }
.seg-item { flex: 1; text-align: center; padding: 8px 0; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; cursor: pointer; color: #64748b; background: #fff; }
.seg-item.active { border-color: #2563eb; color: #2563eb; font-weight: 600; background: #eff6ff; }
.login-card label { display: block; font-size: 13px; margin: 12px 0 4px; color: #374151; }
.inp { width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; }
.btn-primary { width: 100%; margin-top: 18px; padding: 11px; background: #2563eb; color: #fff; border: none; border-radius: 6px; font-size: 15px; cursor: pointer; }
.btn-primary:hover { background: #1d4ed8; }
.err { color: #dc2626; font-size: 13px; margin-top: 10px; min-height: 18px; }
.hint { margin-top: 14px; font-size: 11px; color: #9ca3af; line-height: 1.6; }

/* === fix4: login overlay/footer abs === */
.login-wrap { position: relative; }
#login_overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; z-index: 0; }
.lw-item { position: absolute; pointer-events: auto; }
.login-footer { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-size: 12px; color: rgba(255,255,255,0.92); z-index: 2; padding: 0 24px; line-height: 1.7; }
.login-footer a, .login-footer a:link, .login-footer a:visited { color: rgba(255,255,255,0.92); text-decoration: none; margin: 0 4px; }
.login-footer a:hover { text-decoration: underline; }
.lf-filings { margin-bottom: 2px; }
.lf-copyright { opacity: 0.85; }
