/*
 * 云枢聚合支付系统 · 登录 / 注册 / 找回密码 / 后台登录 共用样式
 * 由 tools/make_auth_pages.mjs 生成，请勿手改；改样式请改生成器。
 * 设计来源：demo1.xjukeji.cn 登录页
 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Noto Sans SC', 'HarmonyOS Sans SC', 'MiSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'DengXian', 'Microsoft YaHei', sans-serif; }
.public-login { width: 100%; min-height: 100vh; background: url("/static/img/auth/bg-userlogin.webp") center center / cover no-repeat; display: flex; align-items: center; justify-content: flex-end; padding: 20px 280px; }
.login-main { width: 100%; max-width: 420px; border-radius: 16px; padding: 40px 30px; box-shadow: rgba(0, 0, 0, 0.08) 0px 4px 20px; background: linear-gradient(rgba(222, 242, 255, 0.7) 0%, rgb(255, 255, 255) 100%); border: 1px solid rgb(255, 255, 255); }
.login-title { text-align: center; font-size: 32px; color: rgb(51, 51, 51); margin-bottom: 40px; font-weight: 500; }
.login-tab { display: flex; margin-bottom: 30px; border-bottom: 1px solid rgb(238, 238, 238); }
.login-tab-item { flex: 1 1 0%; text-align: center; font-size: 16px; color: rgb(102, 102, 102); padding: 10px 0px; cursor: pointer; position: relative; transition: color 0.3s; }
.login-tab-item.active { color: rgb(108, 123, 255); font-weight: 500; }
.login-tab-item.active::after { content: ""; position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%); width: 40px; height: 2px; background: rgb(108, 123, 255); }
.login-input-wrap { margin-bottom: 20px; position: relative; }
.login-input { width: 100%; height: 56px; border: 1px solid rgb(238, 238, 238); border-radius: 12px; padding: 0px 110px 0px 20px; font-size: 16px; color: rgb(51, 51, 51); background: rgb(248, 250, 255); outline: none; transition: border-color 0.3s; box-sizing: border-box; }
.login-input:focus { border-color: rgb(108, 123, 255); }
.login-input::placeholder { color: rgb(153, 153, 153); }
.get-code-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 94px; height: 44px; background: linear-gradient(90deg, rgb(155, 136, 255) 0%, rgb(108, 123, 255) 100%); border: none; border-radius: 12px; color: rgb(255, 255, 255); font-size: 16px; cursor: pointer; transition: opacity 0.3s; }
.get-code-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.login-option-bar { display: flex; justify-content: space-between; margin: 15px 0px 30px; font-size: 14px; }
.login-option-bar a { color: rgb(108, 123, 255); text-decoration: none; }
.login-btn { width: 100%; height: 56px; background: linear-gradient(90deg, rgb(155, 136, 255) 0%, rgb(108, 123, 255) 100%); border: none; border-radius: 12px; color: rgb(255, 255, 255); font-size: 18px; cursor: pointer; transition: opacity 0.3s; }
.login-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.login-agree { margin: 20px 0px 40px; display: flex; align-items: center; font-size: 14px; color: rgb(102, 102, 102); }
.login-agree input { margin-right: 8px; width: 16px; height: 16px; }
.login-agree a { color: rgb(108, 123, 255); text-decoration: none; }
.other-login-title { text-align: center; font-size: 14px; color: rgb(153, 153, 153); margin-bottom: 20px; position: relative; }
.other-login-title::before, .other-login-title::after { content: ""; position: absolute; top: 50%; width: 30%; height: 1px; background: rgb(238, 238, 238); }
.other-login-title::before { left: 0px; }
.other-login-title::after { right: 0px; }
.other-login-list { display: flex; justify-content: center; gap: 40px; }
.other-login-item { width: 50px; height: 50px; border-radius: 50%; background: rgb(248, 250, 255); display: flex; align-items: center; justify-content: center; transition: background 0.3s; pointer-events: auto; cursor: pointer; }
.other-login-item:hover { background: rgb(230, 234, 255); }
.other-login-item img { width: 30px; height: 30px; pointer-events: none; }
.login-form { display: none; }
.login-form.active { display: block; }
/* 背景图上的标题：跟随背景图的 cover 缩放，坐标按 3840x2160 原图钉死，
   这样文字位置和原图一致，内容却来自「系统名称」配置（改后台名字，这里跟着变） */
.login-hero { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.login-hero-inner { --u: calc(max(100vw, 177.7778vh) / 3840); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: calc(3840 * var(--u)); height: calc(2160 * var(--u)); color: rgb(8, 20, 99); }
.login-hero-title { position: absolute; left: calc(383 * var(--u)); top: calc(300 * var(--u)); font-size: calc(110 * var(--u)); line-height: 1; font-weight: 700; white-space: nowrap; }
.login-hero-sub { position: absolute; left: calc(374 * var(--u)); top: calc(482 * var(--u)); font-size: calc(42 * var(--u)); line-height: 1; color: rgb(36, 64, 143); white-space: nowrap; }
/* 底部三个图标框右边的宣传语（框是图片自带的，文字按原图坐标钉在框右侧） */
.login-hero-feature { position: absolute; top: calc(1607 * var(--u)); }
.login-hero-feature-title { font-size: calc(47 * var(--u)); line-height: 1; font-weight: 700; color: rgb(50, 57, 64); white-space: nowrap; }
.login-hero-feature-desc { margin-top: calc(32 * var(--u)); font-size: calc(33 * var(--u)); line-height: 1; color: rgb(150, 156, 163); white-space: nowrap; }
/* 三个色块里的图标（色块是图片自带的，图标由页面画，白色线性图标和色块对比够） */
.login-hero-icon { position: absolute; width: calc(68 * var(--u)); height: calc(68 * var(--u)); color: rgb(255, 255, 255); }
.login-hero-icon svg { width: 100%; height: 100%; display: block; }
.toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); background: rgba(0, 0, 0, 0.75); color: rgb(255, 255, 255); padding: 10px 20px; border-radius: 4px; z-index: 9999; display: none; animation: toastIn 0.3s; max-width: 80vw; }
.toast.success { background: rgba(82, 196, 26, 0.9); }
.toast.error { background: rgba(255, 77, 79, 0.9); }
.toast.warning { background: rgba(250, 173, 20, 0.95); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -20px); } to { opacity: 1; transform: translate(-50%, 0); } }
/* 本站补充：一行提示文字、后台登录页脚 */
.login-tip { font-size: 13px; color: rgb(153, 153, 153); line-height: 1.6; margin-bottom: 20px; }
.login-footer { text-align: center; font-size: 12px; color: rgb(153, 153, 153); margin-top: 4px; }
@media (max-width: 768px) {
  .public-login { justify-content: center; padding: 20px; background-color: rgb(245, 247, 255); background-image: none !important; }
  .login-main { margin: 0px auto; }
  .login-hero { display: none; }
}
