/* 在线试卷切题 · 登录/注册（与 style.css 的变量保持一致） */
.zx-auth-mask {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(17, 24, 39, .48);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.zx-auth-card {
  position: relative;
  width: 100%; max-width: 380px;
  max-height: calc(100vh - 32px); overflow: auto;
  background: #fff; border-radius: 14px;
  padding: 22px 22px 18px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .28);
  animation: zxPop .16s ease-out;
}
@keyframes zxPop { from { transform: translateY(8px) scale(.98); opacity: 0 } to { transform: none; opacity: 1 } }

.zx-auth-x {
  position: absolute; top: 10px; right: 12px;
  border: 0; background: transparent; color: var(--muted);
  font-size: 16px; line-height: 1; padding: 6px; cursor: pointer; border-radius: 6px;
}
.zx-auth-x:hover { background: #f1f5f9; color: var(--text); }

.zx-auth-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.zx-auth-logo {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px;
  background: var(--accent-weak); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.zx-auth-head b { display: block; font-size: 15px; }
.zx-auth-head span { font-size: 12px; color: var(--muted); }

.zx-auth-tabs { display: flex; gap: 6px; background: #f1f5f9; padding: 4px; border-radius: 9px; margin-bottom: 14px; }
.zx-auth-tabs button {
  flex: 1; border: 0; background: transparent; color: var(--muted);
  padding: 8px 0; border-radius: 7px; font-size: 13px; cursor: pointer;
}
.zx-auth-tabs button.on { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(15, 23, 42, .1); }

.zx-field { margin-bottom: 12px; }
.zx-field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.zx-field input {
  width: 100%; border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; font-size: 14px; color: var(--text); background: #fff;
  outline: none; transition: border-color .12s, box-shadow .12s;
}
.zx-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); }

.zx-go {
  width: 100%; margin-top: 4px;
  background: var(--accent); color: #fff; border: 0; border-radius: 8px;
  padding: 11px 0; font-size: 14px; font-weight: 600; cursor: pointer;
}
.zx-go:hover { background: #1d4ed8; }
.zx-go:disabled { opacity: .6; cursor: not-allowed; }

.zx-msg { font-size: 12px; min-height: 16px; margin: 6px 0 2px; color: var(--danger); }
.zx-msg.ok { color: #059669; }
.zx-tip { font-size: 11px; color: var(--muted); text-align: center; margin-top: 10px; line-height: 1.6; }

/* 顶栏身份区 */
.zx-chip {
  font-size: 12px; color: var(--text); background: #f1f5f9;
  border: 1px solid var(--border); border-radius: 20px;
  padding: 4px 10px; max-width: 130px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
#authBox { margin-left: 2px; }

/* 未登录时的说明（在空状态里） */
.zx-guest-hint {
  margin-top: 14px !important;
  font-size: 12px !important;
  color: #92400e !important;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 8px 12px;
  display: inline-block;
}

@media (max-width: 768px) {
  .zx-auth-card { padding: 18px 16px 14px; border-radius: 12px; }
  .zx-chip { max-width: 88px; }
}
