/* 登录层与用户徽标：沿用平台深色科技风（#050810 底、#22d3ee 青色强调）。 */
.hz-auth-overlay {
  position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
  padding: 24px; overflow-y: auto;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(34, 211, 238, .07), transparent),
    radial-gradient(ellipse 60% 40% at 85% 110%, rgba(96, 165, 250, .06), transparent),
    #050810;
  color: #dbe6f5;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
.hz-auth-overlay[hidden] { display: none !important; }
.hz-auth-overlay * { box-sizing: border-box; }

.hz-auth-card {
  width: min(520px, 100%); padding: 34px 34px 28px;
  background: linear-gradient(145deg, #0b1424, #111827);
  border: 1px solid #26364f; border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .5);
}
.hz-auth-eyebrow {
  margin: 0 0 8px; color: #67e8f9; font-size: 11px; letter-spacing: .22em;
  font-family: "JetBrains Mono", Consolas, Menlo, monospace; text-transform: uppercase;
}
.hz-auth-card h1 { margin: 0; color: #f8fafc; font-size: 24px; line-height: 1.4; font-weight: 600; }
.hz-auth-sub { margin: 10px 0 20px; color: #8ea1c6; font-size: 12.5px; line-height: 1.9; }

.hz-auth-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.hz-auth-tab {
  flex: 1; padding: 8px; font: inherit; font-size: 13px; cursor: pointer;
  color: #9fb0c5; background: rgba(15, 23, 42, .82); border: 1px solid #253650; border-radius: 8px;
}
.hz-auth-tab[aria-selected="true"] { color: #a5f3fc; border-color: #22d3ee; background: #10243a; }

.hz-auth-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.hz-auth-role {
  padding: 12px 10px; text-align: left; cursor: pointer; font: inherit;
  color: #9fb0c5; background: rgba(15, 23, 42, .82);
  border: 1px solid #253650; border-radius: 10px; transition: border-color .15s, background .15s;
}
.hz-auth-role strong { display: block; margin-bottom: 4px; color: #e2e8f0; font-size: 13px; font-weight: 600; }
.hz-auth-role span { display: block; font-size: 11px; line-height: 1.6; color: #71839b; }
.hz-auth-role:hover { border-color: #31506c; }
.hz-auth-role[aria-pressed="true"] { border-color: #22d3ee; background: #10243a; }
.hz-auth-role[aria-pressed="true"] strong { color: #a5f3fc; }

.hz-auth-field { display: block; margin-bottom: 14px; }
.hz-auth-field span { display: block; margin-bottom: 6px; color: #9fb0c5; font-size: 12px; }
.hz-auth-field input {
  width: 100%; padding: 10px 12px; font: inherit; font-size: 14px;
  color: #e2e8f0; background: #0c1220; border: 1px solid #1a2540; border-radius: 8px; outline: none;
}
.hz-auth-field input:focus { border-color: #22d3ee; box-shadow: 0 0 0 2px rgba(34, 211, 238, .15); }

.hz-auth-error {
  display: none; margin: 0 0 14px; padding: 9px 12px; font-size: 12.5px; line-height: 1.7;
  color: #fca5a5; background: rgba(248, 113, 113, .08); border: 1px solid rgba(248, 113, 113, .35); border-radius: 8px;
}
.hz-auth-error.show { display: block; }

.hz-auth-submit {
  width: 100%; padding: 11px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  color: #06222b; background: linear-gradient(135deg, #22d3ee, #34d399);
  border: none; border-radius: 8px; transition: filter .15s;
}
.hz-auth-submit:hover { filter: brightness(1.08); }
.hz-auth-submit:disabled { opacity: .55; cursor: wait; }

.hz-auth-hint { margin: 16px 0 0; color: #54678c; font-size: 11px; line-height: 1.9; }
.hz-auth-hint code {
  padding: 1px 5px; color: #8ea1c6; background: #0c1220; border: 1px solid #1a2540; border-radius: 4px;
  font-family: "JetBrains Mono", Consolas, monospace; font-size: 10.5px;
}
.hz-auth-back { margin: 12px 0 0; text-align: center; }
.hz-auth-back a { color: #54678c; font-size: 11.5px; text-decoration: none; }
.hz-auth-back a:hover { color: #67e8f9; }

.hz-auth-badge {
  position: fixed; right: 16px; bottom: 16px; z-index: 9000; display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; color: #9fb0c5; font-size: 12px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  background: rgba(12, 18, 32, .92); border: 1px solid #26364f; border-radius: 999px;
  backdrop-filter: blur(8px); box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}
.hz-auth-badge b { color: #e2e8f0; font-weight: 600; }
.hz-auth-badge i { font-style: normal; color: #67e8f9; font-size: 11px; }
.hz-auth-badge button {
  padding: 4px 10px; font: inherit; font-size: 11px; cursor: pointer;
  color: #a5f3fc; background: #10243a; border: 1px solid #31506c; border-radius: 999px;
}
.hz-auth-badge button:hover { border-color: #22d3ee; }

@media (max-width: 560px) {
  .hz-auth-card { padding: 24px 20px; }
  .hz-auth-roles { grid-template-columns: 1fr; }
}
