/* RQ-091 UI 改版：登录页（参考滴答清单），只作用于 sysLogin.jsp */
html, body.login-page {
    background: #f7f8fa;
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    color: #2c3e50;
    line-height: 1.6;
}
.login-page * { box-sizing: border-box; }

/* 左上角品牌 */
.login-brand { position: absolute; top: 24px; left: 28px; display: flex; align-items: center; }
.login-brand .brand-mark {
    width: 26px; height: 26px; line-height: 26px; border-radius: 7px; text-align: center;
    background: linear-gradient(135deg, #2fa4e7, #1a99e2); color: #fff;
    font-size: 14px; font-weight: 600; margin-right: 8px;
}
.login-brand .brand-name { font-size: 15px; font-weight: 600; color: #033c73; }

/* 卡片 */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px 52px; }
.login-card {
    width: 398px; max-width: 100%; background: #fff; border-radius: 12px;
    box-shadow: 0 6px 26px rgba(31, 56, 84, .08); padding: 30px 30px 24px;
}
.login-card h1 { font-size: 26px; font-weight: 700; margin: 0 0 20px; color: #1f2d3d; }

/* 输入 */
.login-card .input-label { display: block; font-size: 13px; color: #7a869a; margin: 12px 0 6px; font-weight: 400; }
.login-card .input-block-level {
    width: 100%; height: 44px; padding: 0 12px; font-size: 14px; color: #1f2d3d;
    border: 1px solid #e3e7ec; border-radius: 8px; background: #fff; outline: none;
    transition: border-color .15s;
}
.login-card .input-block-level:focus { border-color: #2fa4e7; box-shadow: 0 0 0 2px rgba(47,164,231,.12); }
.login-card .validateCode { margin-top: 12px; }
.login-card .validateCode img { vertical-align: middle; margin-left: 6px; border-radius: 4px; }

/* 按钮 */
.login-card .btn-primary-login {
    display: block; width: 100%; height: 44px; margin-top: 18px;
    background: #2fa4e7; color: #fff; font-size: 15px; font-weight: 500;
    border: 0; border-radius: 8px; cursor: pointer;
}
.login-card .btn-primary-login:hover { background: #1a99e2; }
.login-card .remember-line { margin-top: 12px; font-size: 13px; color: #7a869a; }
.login-card .remember-line input { vertical-align: -2px; margin-right: 4px; }

/* 其它登录方式 */
.or-divider { display: flex; align-items: center; margin: 20px 0 14px; color: #a6b0c0; font-size: 12px; }
.or-divider:before, .or-divider:after { content: ""; flex: 1; height: 1px; background: #eceff3; }
.or-divider span { padding: 0 10px; }
.btn-wx {
    display: flex; align-items: center; justify-content: center; width: 100%; height: 44px;
    background: #07c160; color: #fff; border: 0; border-radius: 8px; font-size: 15px; cursor: pointer;
}
.btn-wx:hover { background: #06ad56; }
.btn-wx svg { width: 18px; height: 18px; margin-right: 8px; fill: #fff; }

/* 主题切换放卡片右下角，沿用原有下拉 */
.login-card .theme-switch { margin-top: 14px; text-align: right; font-size: 12px; }
.login-card .theme-switch a { color: #a6b0c0; text-decoration: none; }
.login-card .theme-switch ul { text-align: left; }

/* 底部备案（原样保留文案） */
.login-footer { position: absolute; bottom: 18px; left: 0; width: 100%; text-align: center; font-size: 12px; color: #9aa5b5; line-height: 1.9; }
.login-footer a { color: #9aa5b5; text-decoration: none; }
.login-footer a:hover { color: #2fa4e7; }

/* 弹窗（二维码 / 选公司共用） */
.rq-modal { position: fixed; inset: 0; background: rgba(20, 30, 45, .45); z-index: 2000; display: none; }
.rq-modal.show { display: flex; align-items: center; justify-content: center; }
.rq-modal-card { position: relative; width: 398px; max-width: 92vw; max-height: 92vh; overflow-y: auto; background: #fff; border-radius: 12px; padding: 22px 22px 18px; box-shadow: 0 10px 40px rgba(20,30,45,.2); }
.rq-modal-card h3 { margin: 0 0 4px; font-size: 18px; color: #1f2d3d; }
.rq-modal-sub { margin: 0 0 14px; font-size: 12.5px; color: #7a869a; }
.rq-modal-close { position: absolute; top: 10px; right: 14px; font-size: 22px; line-height: 1; color: #a6b0c0; text-decoration: none; }
.rq-modal-close:hover { color: #5b6b80; }
.rq-qr-box { width: 300px; max-width: 100%; height: 400px; margin: 0 auto; border: 1px solid #eceff3; border-radius: 8px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.rq-qr-box iframe { width: 100%; height: 100%; border: 0; }
.rq-fallback { display: block; margin-top: 10px; text-align: center; font-size: 12.5px; color: #2fa4e7; text-decoration: none; }
.rq-fallback:hover { text-decoration: underline; }
.rq-modal-tip { margin: 12px 0 0; font-size: 12px; color: #a6b0c0; text-align: center; }

/* 选公司弹窗（方案二） */
.rq-company-card { width: 430px; max-width: 92vw; border-radius: 5px; padding: 22px 22px 16px; }
.rq-company-list { margin-top: 6px; }
.rq-company-item { display: flex; align-items: center; padding: 11px 12px; border: 1px solid #eceff3; border-radius: 8px; margin-bottom: 10px; cursor: pointer; }
.rq-company-item:hover { border-color: #2fa4e7; background: #f8fbfe; }
.rq-company-mark { width: 32px; height: 32px; line-height: 32px; border-radius: 6px; color: #fff; text-align: center; font-size: 14px; margin-right: 12px; flex: 0 0 32px; }
.rq-company-mark.wylk { background: #2fa4e7; }
.rq-company-mark.fzlk { background: #73a839; }
.rq-company-name { font-size: 13.5px; font-weight: 600; color: #1f2d3d; }
.rq-company-sub { font-size: 11.5px; color: #8a95a5; margin-top: 2px; }
.rq-company-tip { margin: 10px 0 0; font-size: 12px; color: #a6b0c0; text-align: center; }

/* 未绑定提示弹窗（/wx/callback → ?wxunbound=1）：关掉继续用账号密码登录 */
.rq-unbound-card { width: 360px; max-width: 92vw; }
.rq-unbound-card .rq-modal-sub { margin: 0 0 18px; font-size: 13.5px; color: #5b6b80; line-height: 1.7; }
.rq-modal-btn {
    display: block; width: 100%; height: 40px; background: #2fa4e7; color: #fff;
    font-size: 14px; font-weight: 500; border: 0; border-radius: 8px; cursor: pointer;
}
.rq-modal-btn:hover { background: #1a99e2; }

/* 矮屏（1366×768 去掉浏览器工具栏后视口约 640～700）再压一档，保证不出竖向滚动条 */
@media (max-height: 700px) {
    .login-wrap { padding: 14px 16px 40px; }
}

/* 窄屏 */
@media (max-width: 480px) {
    /* 窄屏品牌改走文档流，避免绝对定位压在卡片上 */
    .login-brand { position: static; padding: 14px 0 0 16px; }
    .login-wrap { padding: 0 12px 40px; }
    .login-card { padding: 22px 18px 18px; border-radius: 10px; }
    .login-card h1 { font-size: 22px; margin-bottom: 14px; }
}
