/* 全站公用新版登录弹窗（与题库 tiku-login 同款 UI，独立文件供全站加载） */
.tx-toast { position: fixed; left: 50%; top: 18%; transform: translate(-50%, -12px); background: rgba(58, 61, 75, .9); color: #fff; padding: 10px 24px; border-radius: 20px; z-index: 10001; opacity: 0; transition: all .3s; font-size: 14px; max-width: 80vw; }
.tx-toast.show { opacity: 1; transform: translate(-50%, 0); }

.tx-login-mask { position: fixed; inset: 0; background: rgba(20, 30, 50, .55); z-index: 1200; display: flex; align-items: flex-start; justify-content: center; padding-top: 11vh; backdrop-filter: blur(3px); }
.tx-login-card { width: 640px; background: #fff; border-radius: 18px; position: relative; overflow: hidden; box-shadow: 0 24px 64px rgba(20, 40, 90, .25); display: flex; animation: txlgIn .35s cubic-bezier(.2, 1.2, .4, 1) both; }
@keyframes txlgIn { from { transform: translateY(24px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.tx-login-close { position: absolute; right: 14px; top: 12px; width: 30px; height: 30px; line-height: 28px; text-align: center; font-size: 20px; color: #b6bcc9; cursor: pointer; border-radius: 50%; z-index: 3; transition: all .2s; }
.tx-login-close:hover { background: #f2f4f8; color: #3a3d4b; }
.tx-login-body { display: flex; width: 100%; }
/* 品牌侧栏 */
.tx-login-brand { width: 218px; flex-shrink: 0; background: linear-gradient(160deg, #2f6ad9 0%, #3d7df5 55%, #6aa2ff 100%); color: #fff; padding: 40px 26px 30px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.tx-login-brand::after { content: ''; position: absolute; right: -46px; bottom: -46px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.tx-login-brand::before { content: ''; position: absolute; right: 30px; top: -40px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.tx-login-brand-logo { font-size: 22px; font-weight: 800; letter-spacing: 2px; position: relative; }
.tx-login-brand-slogan { margin-top: 14px; font-size: 13px; line-height: 2; opacity: .85; position: relative; }
.tx-login-brand-dots { margin-top: auto; display: flex; gap: 8px; position: relative; }
.tx-login-brand-dots i { width: 26px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .35); }
.tx-login-brand-dots i:first-child { background: #fff; }
/* 表单区 */
.tx-login-formwrap { flex: 1; padding: 30px 36px 22px; min-width: 0; }
.tx-login-seg { display: flex; background: #f2f5fa; border-radius: 10px; padding: 4px; gap: 4px; margin-bottom: 22px; }
.tx-login-seg-item { flex: 1; text-align: center; padding: 9px 0; font-size: 14px; color: #7b8494; border-radius: 7px; cursor: pointer; transition: all .2s; text-decoration: none; }
.tx-login-seg-item:hover { color: #3d7df5; }
.tx-login-seg-item.on { background: #fff; color: #3d7df5; font-weight: 600; box-shadow: 0 2px 8px rgba(40, 80, 160, .12); }
.tx-login-panes { min-height: 252px; }
.tx-login-pane { display: flex; flex-direction: column; }
/* 扫码 */
.tx-qr-frame { width: 190px; height: 190px; margin: 6px auto 0; position: relative; border-radius: 12px; border: 1px solid #e8edf5; padding: 8px; background: #fff; }
.tx-qr-frame::before, .tx-qr-frame::after { content: ''; position: absolute; width: 22px; height: 22px; border: 3px solid #3d7df5; border-radius: 4px; }
.tx-qr-frame::before { left: -3px; top: -3px; border-right: none; border-bottom: none; }
.tx-qr-frame::after { right: -3px; bottom: -3px; border-left: none; border-top: none; }
.tx-qr-img { width: 100%; height: 100%; display: block; border-radius: 6px; }
.tx-qr-mask { position: absolute; inset: 8px; background: rgba(255, 255, 255, .95); display: flex; align-items: center; justify-content: center; text-align: center; font-size: 13px; color: #606266; padding: 0 18px; cursor: pointer; line-height: 1.9; border-radius: 6px; }
.tx-qr-tip { text-align: center; font-size: 13px; color: #90939c; margin-top: 16px; }
.tx-qr-tip b { color: #3a3d4b; }
/* 输入 */
.tx-login-fields { display: flex; flex-direction: column; gap: 14px; padding-top: 4px; }
.tx-field { position: relative; display: flex; align-items: center; }
.tx-ico { position: absolute; left: 14px; width: 18px; height: 18px; background-size: contain; background-repeat: no-repeat; background-position: center; opacity: .55; z-index: 1; }
.tx-ico-phone { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d7df5' stroke-width='2'%3E%3Crect x='7' y='2' width='10' height='20' rx='2'/%3E%3Cline x1='11' y1='18' x2='13' y2='18'/%3E%3C/svg%3E"); }
.tx-ico-shield { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d7df5' stroke-width='2'%3E%3Cpath d='M12 22s8-3.6 8-10V5l-8-3-8 3v7c0 6.4 8 10 8 10z'/%3E%3C/svg%3E"); }
.tx-ico-user { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d7df5' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 3.6-6 8-6s8 2 8 6'/%3E%3C/svg%3E"); }
.tx-ico-lock { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d7df5' stroke-width='2'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E"); }
.tx-login-input { height: 46px; border: 1.5px solid #e4e9f2; border-radius: 10px; padding: 0 14px 0 42px; font-size: 14px; width: 100%; box-sizing: border-box; outline: none; background: #f7f9fc; transition: all .2s; }
.tx-login-input:focus { border-color: #3d7df5; background: #fff; box-shadow: 0 0 0 3px rgba(61, 125, 245, .12); }
.tx-field-code .tx-login-input { padding-right: 116px; }
.tx-login-codebtn { position: absolute; right: 6px; height: 34px; padding: 0 14px; border: none; color: #3d7df5; background: #eaf1ff; border-radius: 8px; cursor: pointer; font-size: 13px; flex-shrink: 0; transition: all .2s; }
.tx-login-codebtn:hover { background: #d9e7ff; }
.tx-login-codebtn[disabled] { color: #a9b2c0; background: #f0f2f6; cursor: not-allowed; }
.tx-login-submit { height: 46px; margin-top: 4px; background: linear-gradient(90deg, #5b9bf8, #3d7df5); border: none; border-radius: 23px; color: #fff; font-size: 16px; cursor: pointer; letter-spacing: 6px; font-weight: 600; transition: all .2s; box-shadow: 0 6px 16px rgba(61, 125, 245, .3); }
.tx-login-submit:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(61, 125, 245, .38); }
.tx-login-submit:active { transform: translateY(0); }
.tx-login-err { color: #f8323c; font-size: 12px; min-height: 16px; text-align: center; }
.tx-login-agree { text-align: center; font-size: 12px; color: #a9b2c0; margin-top: 18px; }
.tx-login-agree a { color: #3d7df5; text-decoration: none; }
@media (max-width: 768px) {
  .tx-login-card { width: 92vw; }
  .tx-login-brand { display: none; }
  .tx-login-formwrap { padding: 24px 22px 18px; }
}
