/* 由 tools/sync-site-ui.py 从 inject/account.css（登录页） 原样抽取生成，勿手改 */
/* ===== 天玺云控：账号系统 ===== */
/* 登录页：黑底粒子动画 + 右侧毛玻璃登录框（固定深色，主色跟随控制台主题色） */
.tx-login {
  --tx-a: var(--el-color-primary, #2793fb);
  position: fixed; inset: 0; z-index: 99990; display: none; overflow: hidden;
  background: #030408; color: #f2f4f8; font-size: 14px; color-scheme: dark;
}
.tx-login.show { display: block; animation: tx-login-in .5s ease both; }
.tx-login.leaving { animation: tx-login-out .42s ease both; }
@keyframes tx-login-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes tx-login-out { to { opacity: 0; transform: scale(1.03); filter: blur(4px); } }
.tx-login-fx { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tx-login::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(1200px 700px at 36% 55%, transparent 40%, rgb(0 0 0 / .55) 100%);
}
.tx-login-bar { position: absolute; z-index: 3; left: 0; right: 0; top: 0; height: 40px; display: flex; align-items: center; padding-left: 16px; -webkit-app-region: drag; user-select: none; }
.tx-login-bar-title { margin-right: auto; font-size: 12px; color: rgb(255 255 255 / .38); letter-spacing: .08em; }
.tx-login-bar button {
  -webkit-app-region: no-drag; width: 46px; height: 40px; display: grid; place-items: center; padding: 0; border: 0;
  background: transparent; color: rgb(255 255 255 / .55); cursor: pointer;
}
.tx-login-bar button svg { width: 16px; height: 16px; }
.tx-login-bar button:hover { background: rgb(255 255 255 / .08); color: #fff; }
.tx-login-bar button.close:hover { background: #e81123; color: #fff; }
/* 动画上方的大标题 */
.tx-login-title {
  position: absolute; z-index: 2; left: 36%; top: 9%; transform: translateX(-50%); text-align: center; pointer-events: none;
  animation: tx-title-in 1s .2s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes tx-title-in { from { opacity: 0; transform: translate(-50%, 14px); } }
.tx-login-mark {
  width: 46px; height: 46px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 13px; overflow: hidden;
  background: rgb(255 255 255 / .08); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14), 0 0 30px color-mix(in srgb, var(--tx-a) 35%, transparent);
  font: 700 22px/1 system-ui, sans-serif;
}
.tx-login-mark img { width: 100%; height: 100%; object-fit: cover; }
.tx-login-title h1 { margin: 0; font-size: 44px; font-weight: 700; letter-spacing: .12em; line-height: 1.15; color: #fff; text-shadow: 0 0 24px rgb(255 255 255 / .18); }
.tx-login-title h1 span { color: var(--tx-a); text-shadow: 0 0 28px color-mix(in srgb, var(--tx-a) 60%, transparent); }
.tx-login-title p { margin: 8px 0 0; font-size: 11px; letter-spacing: .5em; color: rgb(255 255 255 / .42); }
/* 右侧登录框 */
.tx-login-stage { position: absolute; z-index: 2; top: 0; bottom: 0; right: 7%; display: flex; align-items: center; }
.tx-login-panel {
  width: 380px; padding: 38px 36px 24px; box-sizing: border-box; display: flex; flex-direction: column; gap: 16px;
  border-radius: 20px; background: rgb(14 16 22 / .58); border: 1px solid rgb(255 255 255 / .09);
  box-shadow: 0 40px 120px -30px rgb(0 0 0 / .9), inset 0 1px 0 rgb(255 255 255 / .06);
  animation: tx-panel-in .9s .35s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes tx-panel-in { from { opacity: 0; transform: translateX(26px); } }
.tx-login-panel.shake { animation: tx-login-shake .38s ease; }
@keyframes tx-login-shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.tx-login-head h2 { margin: 0; font-size: 22px; font-weight: 600; }
.tx-login-head p { margin: 6px 0 4px; font-size: 13px; color: var(--el-text-color-secondary); }
.tx-login .tx-login-head h2 { color: #fff; }
.tx-login .tx-login-head p { color: rgb(255 255 255 / .5); }
.tx-login-server-view { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tx-login-server-view[hidden], .tx-login-server-edit[hidden] { display: none !important; }
.tx-login-chip { min-width: 0; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgb(255 255 255 / .06); color: rgb(255 255 255 / .7); font-size: 12px; }
.tx-login-chip svg { flex: 0 0 auto; width: 14px; height: 14px; color: var(--tx-a); }
.tx-login-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, Consolas, monospace; }
.tx-login-link { flex: 0 0 auto; padding: 0; border: 0; background: none; color: var(--tx-a); font: inherit; font-size: 12px; cursor: pointer; }
.tx-login-link:hover { text-decoration: underline; }
.tx-login-field { display: grid; gap: 7px; }
.tx-login-label { font-size: 12px; color: var(--el-text-color-regular); }
.tx-login .tx-login-label { color: rgb(255 255 255 / .6); }
.tx-login-input {
  height: 44px; display: flex; align-items: center; gap: 9px; padding: 0 13px; box-sizing: border-box;
  border: 1px solid var(--el-border-color); border-radius: 11px; background: var(--el-fill-color-blank);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.tx-login .tx-login-input { border-color: rgb(255 255 255 / .1); background: rgb(255 255 255 / .04); }
.tx-login .tx-login-input:hover { border-color: rgb(255 255 255 / .2); }
.tx-login-input:focus-within { border-color: var(--tx-a) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--tx-a) 22%, transparent); }
.tx-login .tx-login-input:focus-within { background: rgb(255 255 255 / .07); }
.tx-login-input > svg { flex: 0 0 auto; width: 17px; height: 17px; color: var(--el-text-color-placeholder); }
.tx-login .tx-login-input > svg { color: rgb(255 255 255 / .35); }
.tx-login-input:focus-within > svg { color: var(--tx-a) !important; }
.tx-login-input input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; padding: 0; background: transparent; color: var(--el-text-color-primary); font: inherit; font-size: 14px; }
.tx-login .tx-login-input input { color: #fff; }
.tx-login-input input::placeholder { color: var(--el-text-color-placeholder); }
.tx-login .tx-login-input input::placeholder { color: rgb(255 255 255 / .3); }
.tx-login .tx-login-input input:-webkit-autofill { -webkit-text-fill-color: #fff; transition: background-color 9999s; }
.tx-login-eye { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; background: none; color: rgb(255 255 255 / .35); cursor: pointer; }
.tx-login-eye:hover { color: #fff; background: rgb(255 255 255 / .08); }
.tx-login-eye svg { width: 17px; height: 17px; }
.tx-login-msg { display: none; padding: 8px 12px; border-radius: 9px; font-size: 12px; line-height: 1.5; color: #ff7b7b; background: rgb(255 80 80 / .1); border: 1px solid rgb(255 80 80 / .18); }
.tx-login-msg.show { display: block; }
.tx-login-btn {
  position: relative; overflow: hidden; height: 46px; margin-top: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 11px; cursor: pointer; color: #fff; font: inherit; font-size: 15px; font-weight: 600; letter-spacing: .14em;
  background: linear-gradient(135deg, color-mix(in srgb, var(--tx-a) 75%, #fff), var(--tx-a) 55%, color-mix(in srgb, var(--tx-a) 80%, #000));
  box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--tx-a) 85%, transparent);
  transition: filter .15s, transform .1s, box-shadow .2s;
}
.tx-login-btn::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / .28) 50%, transparent 70%);
}
.tx-login-btn:hover:not(:disabled)::after { transform: translateX(120%); transition: transform .7s ease; }
.tx-login-btn:hover:not(:disabled) { box-shadow: 0 14px 36px -10px color-mix(in srgb, var(--tx-a) 95%, transparent); }
.tx-login-btn:active:not(:disabled) { transform: translateY(1px); }
.tx-login-btn:disabled { cursor: default; opacity: .85; }
.tx-login-spin { display: none; width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgb(255 255 255 / .4); border-top-color: #fff; animation: tx-spin .8s linear infinite; }
.tx-login-btn.loading .tx-login-spin { display: inline-block; }
@keyframes tx-spin { to { transform: rotate(360deg); } }
.tx-login-foot { margin-top: 8px; text-align: center; font-size: 11px; color: rgb(255 255 255 / .3); }
@media (max-width: 980px) {
  .tx-login-title { left: 50%; top: 6%; }
  .tx-login-title h1 { font-size: 34px; }
  .tx-login-stage { right: 0; left: 0; justify-content: center; align-items: flex-end; padding-bottom: 6vh; }
}
/* 登录输入框：单层、细边、线性图标（不套方块、不浮动标签），聚焦只变边框和图标颜色 */
.tx-fl-group { display: grid; gap: 12px; }
.tx-fl {
  position: relative; height: 50px; display: flex; align-items: center; gap: 11px; padding: 0 14px; box-sizing: border-box;
  border-radius: 12px; cursor: text; background: rgb(255 255 255 / .045);
  border: 1px solid rgb(255 255 255 / .08);
  transition: background .18s, border-color .18s, box-shadow .18s;
}
.tx-fl:hover { border-color: rgb(255 255 255 / .16); }
.tx-fl:focus-within {
  background: rgb(255 255 255 / .06);
  border-color: color-mix(in srgb, var(--tx-a) 80%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tx-a) 14%, transparent);
}
.tx-fl[hidden] { display: none !important; }
.tx-fl-ico { flex: 0 0 auto; width: 18px; height: 18px; display: grid; place-items: center; color: rgb(255 255 255 / .36); transition: color .18s; }
.tx-fl-ico svg { width: 18px; height: 18px; }
.tx-fl:focus-within .tx-fl-ico { color: var(--tx-a); }
.tx-fl-box { position: relative; flex: 1; min-width: 0; height: 100%; }
.tx-fl-box input {
  position: absolute; inset: 0; width: 100%; padding: 0; box-sizing: border-box; border: 0; outline: 0; background: transparent;
  color: #fff; font: inherit; font-size: 15px; caret-color: var(--tx-a);
}
.tx-fl-box input[type="password"]:not(:placeholder-shown) { letter-spacing: .16em; }
.tx-fl-box input:-webkit-autofill { -webkit-text-fill-color: #fff; transition: background-color 9999s; }
/* 标签当占位文字用：有内容就隐藏 */
.tx-fl-label {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%); pointer-events: none; white-space: nowrap;
  color: rgb(255 255 255 / .34); font-size: 15px; transition: opacity .12s;
}
.tx-fl-box input:not(:placeholder-shown) + .tx-fl-label { opacity: 0; }
.tx-fl-hint { flex: 0 0 auto; font-size: 11px; color: rgb(255 255 255 / .24); transition: opacity .15s; }
.tx-fl-box:has(input:not(:placeholder-shown)) + .tx-fl-hint { opacity: 0; }
.tx-fl .tx-login-eye { margin-right: -6px; }
.tx-login-caps { margin-top: -4px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: #ffc46b; }
.tx-login-caps::before { content: "⇪"; font-size: 13px; }
.tx-login-caps[hidden] { display: none; }
/* 面板与按钮：统一 12px 圆角、去掉重光晕 */
.tx-login-panel { gap: 16px; padding: 40px 36px 26px; }
.tx-login .tx-login-head { margin-bottom: 6px; }
.tx-login .tx-login-head h2 { font-size: 24px; letter-spacing: .02em; }
.tx-login .tx-login-btn {
  height: 48px; margin-top: 4px; border-radius: 12px; letter-spacing: .12em;
  background: var(--tx-a);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), 0 8px 20px -12px color-mix(in srgb, var(--tx-a) 90%, transparent);
}
.tx-login .tx-login-btn:hover:not(:disabled) { filter: brightness(1.08); box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), 0 10px 24px -12px var(--tx-a); }
.tx-login-chip { background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .07); }
/* 记住密码 / 自动登录 */
.tx-login-opts { display: flex; align-items: center; gap: 20px; margin: -2px 2px 0; }
.tx-ck { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; font-size: 13px; color: rgb(255 255 255 / .62); }
.tx-ck:hover { color: rgb(255 255 255 / .85); }
.tx-ck input { position: absolute; opacity: 0; pointer-events: none; }
.tx-ck i {
  width: 16px; height: 16px; flex: 0 0 auto; border-radius: 5px; box-sizing: border-box; position: relative;
  border: 1.5px solid rgb(255 255 255 / .28); background: rgb(255 255 255 / .04); transition: background .15s, border-color .15s;
}
.tx-ck input:checked + i { background: var(--tx-a); border-color: var(--tx-a); box-shadow: 0 0 10px -2px color-mix(in srgb, var(--tx-a) 80%, transparent); }
.tx-ck input:checked + i::after {
  content: ""; position: absolute; left: 4.5px; top: 1.5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.tx-ck input:focus-visible + i { outline: 2px solid color-mix(in srgb, var(--tx-a) 60%, transparent); outline-offset: 2px; }
/* 已登录时的「欢迎回来」面板：停在登录动画页，手动点进入 */
.tx-login-welcome { display: none; }
.tx-login-panel.welcome > :not(.tx-login-welcome):not(.tx-login-foot) { display: none !important; }
.tx-login-panel.welcome .tx-login-welcome { display: grid; justify-items: center; gap: 6px; padding: 10px 0 4px; text-align: center; }
/* 头像：深色玻璃圆盘 + 细光环缓慢旋转 + 渐变字母 + 在线小绿点（不用实心色块） */
.tx-wel-avatar {
  position: relative; width: 84px; height: 84px; margin: 6px 0 18px; display: grid; place-items: center; border-radius: 50%;
  font-size: 34px; font-weight: 500; line-height: 1; color: transparent;
  background-image:
    linear-gradient(160deg, #fff 10%, color-mix(in srgb, var(--tx-a) 55%, #fff) 90%),
    radial-gradient(circle at 32% 24%, rgb(255 255 255 / .16), rgb(255 255 255 / .03) 62%);
  -webkit-background-clip: text, border-box; background-clip: text, border-box;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1), inset 0 -10px 20px -10px color-mix(in srgb, var(--tx-a) 45%, transparent), 0 0 46px -10px color-mix(in srgb, var(--tx-a) 75%, transparent);
}
.tx-wel-avatar::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; padding: 1.5px;
  background: conic-gradient(from 0deg, transparent 0 50%, color-mix(in srgb, var(--tx-a) 80%, transparent) 78%, #fff 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: tx-wel-ring 3.6s linear infinite;
}
.tx-wel-avatar::after {
  content: ""; position: absolute; right: 3px; bottom: 3px; width: 13px; height: 13px; border-radius: 50%;
  background: #3ecf8e; border: 3px solid #0f1117; box-shadow: 0 0 10px rgb(62 207 142 / .7);
}
@keyframes tx-wel-ring { to { transform: rotate(360deg); } }
.tx-login-welcome h2 { margin: 0; font-size: 14px; font-weight: 400; letter-spacing: .3em; color: rgb(255 255 255 / .5); }
.tx-wel-name { margin: 2px 0 0; font-size: 26px; font-weight: 600; color: #fff; }
.tx-wel-sub { margin: 0 0 18px; font-size: 13px; color: rgb(255 255 255 / .5); }
.tx-login-welcome .tx-login-btn { width: 100%; margin: 0; }
.tx-login-welcome .tx-wel-switch { margin-top: 12px; font-size: 13px; color: rgb(255 255 255 / .5); }
.tx-login-welcome .tx-wel-switch:hover { color: var(--tx-a); }
.tx-login-back { align-self: flex-start; margin: -14px 0 -4px; font-size: 13px; color: rgb(255 255 255 / .55); }
.tx-login-back:hover { color: var(--tx-a); text-decoration: none; }
.tx-login-back[hidden] { display: none; }
/* 登录 / 进入按钮：白底黑字的极简按钮（黑底粒子页上对比最干净），不用渐变、流光、发光 */
.tx-login .tx-login-btn {
  height: 48px; border-radius: 12px; outline: none; border: 0; overflow: visible;
  color: #0a0b0e; background: #fff; text-shadow: none;
  font-size: 15px; font-weight: 600; letter-spacing: .06em; text-indent: 0;
  box-shadow: 0 1px 0 rgb(255 255 255 / .5) inset, 0 10px 30px -14px rgb(255 255 255 / .55);
  transition: background .15s ease, transform .12s ease, box-shadow .2s ease;
}
.tx-login .tx-login-btn::after { content: none; }
.tx-login .tx-login-btn:hover:not(:disabled) { filter: none; transform: none; background: #e9edf3; box-shadow: 0 12px 34px -14px rgb(255 255 255 / .7); }
.tx-login .tx-login-btn:active:not(:disabled) { transform: scale(.985); background: #dfe4ec; }
.tx-login .tx-login-btn:focus-visible { box-shadow: 0 0 0 2px #030408, 0 0 0 4px rgb(255 255 255 / .55); }
.tx-login .tx-login-btn:disabled { opacity: .7; }
.tx-login .tx-login-spin { border-color: rgb(0 0 0 / .2); border-top-color: #0a0b0e; }
.tx-wel-arrow { width: 17px; height: 17px; margin-left: 2px; transition: transform .2s ease; }
.tx-wel-enter:hover .tx-wel-arrow { transform: translateX(4px); }
/* 性能：登录框不再对后面的动画做实时模糊（每帧重算很贵），改用更实的底色；登录层盖着时主界面不参与绘制 */
.tx-login-panel { background: rgb(11 13 18 / .9); }
