/* 今早 · 独立门禁（破晓主题）
 * 深午夜蓝渐变背景 + 一抹晨光，居中卡片式；纯色卡面、细边框、柔和阴影。
 * 完全独立设计，不复用任何既有品牌皮肤。 */
body.license-gate-open {
  background: #0b1020;
}

.license-gate {
  --jz-bg: #0b1020;
  --jz-bg2: #121b33;
  --jz-card: rgba(18, 26, 48, .92);
  --jz-ink: #eef2fb;
  --jz-ink2: #9aa6c0;
  --jz-accent: #ffc36b;      /* 晨光金 */
  --jz-accent-deep: #e8a84c;
  --jz-blue: #8ab4ff;        /* 黎明蓝 */
  --jz-line: rgba(255, 255, 255, .09);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 40px 22px;
  overflow-x: hidden;
  background:
    radial-gradient(900px 480px at 50% -12%, rgba(255, 195, 107, .14) 0%, rgba(255, 195, 107, 0) 60%),
    radial-gradient(1000px 700px at 82% 110%, rgba(138, 180, 255, .10) 0%, rgba(138, 180, 255, 0) 55%),
    var(--jz-bg);
  color: var(--jz-ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

.license-gate.hidden { display: none !important; }

.license-gate .license-brand {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  width: min(460px, 100%);
  margin: 0 0 22px;
  padding: 0 4px;
  border: 0;
  color: var(--jz-ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .01em;
}

.license-gate .license-brand small {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--jz-ink2);
}

.license-gate .license-card {
  display: block;
  width: min(460px, 100%);
  margin: 0;
  padding: 40px 36px 36px;
  border: 1px solid var(--jz-line);
  border-radius: 22px;
  background: var(--jz-card);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .04);
  backdrop-filter: none;
}

.license-gate .license-content { width: 100%; padding: 0; }

.license-gate .license-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--jz-accent);
  font-family: "SFMono-Regular", Consolas, "PingFang SC", "Microsoft YaHei", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
}

.license-gate .license-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--jz-accent);
  box-shadow: 0 0 10px var(--jz-accent);
}

.license-gate #license-title {
  margin: 18px 0 14px;
  color: var(--jz-ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: clamp(30px, 6vw, 40px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.license-gate .license-intro {
  max-width: 60ch;
  margin: 0;
  color: var(--jz-ink2);
  font-size: 14.5px;
  line-height: 1.7;
}

.license-gate .license-form { display: block; margin-top: 28px; }

.license-gate .license-label {
  display: block;
  margin-bottom: 8px;
  color: var(--jz-ink2);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
}

.license-gate .license-input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid var(--jz-line);
  border-radius: 12px;
  outline: 0;
  background: rgba(8, 12, 26, .6);
  color: var(--jz-ink);
  box-shadow: none;
  font-family: "SFMono-Regular", Consolas, "PingFang SC", "Microsoft YaHei", monospace;
  font-size: 17px;
  line-height: 1.5;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.license-gate .license-input::placeholder { color: rgba(154, 166, 192, .5); }
.license-gate .license-input:focus {
  border-color: var(--jz-accent);
  box-shadow: 0 0 0 3px rgba(255, 195, 107, .18);
}
.license-gate .license-input:focus-visible { outline: 0; }

.license-gate .license-hint {
  margin: 12px 2px 0;
  color: var(--jz-ink2);
  font-size: 12.5px;
  line-height: 1.6;
  opacity: .85;
}

.license-gate .license-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  margin-top: 24px;
  padding: 13px 24px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--jz-accent), var(--jz-accent-deep));
  color: #1a1208;
  box-shadow: 0 8px 24px rgba(255, 195, 107, .25);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  transition: transform .12s ease, filter .2s ease, box-shadow .2s ease;
}

.license-gate .license-submit:hover:not(:disabled) {
  filter: brightness(1.06);
  box-shadow: 0 10px 30px rgba(255, 195, 107, .32);
}

.license-gate .license-submit:active:not(:disabled) { transform: translateY(1px); }
.license-gate .license-submit:disabled { cursor: wait; opacity: .6; }
.license-gate .license-submit:focus-visible,
.license-gate .license-retry:focus-visible {
  outline: 2px solid var(--jz-accent);
  outline-offset: 3px;
}

.license-gate .license-retry {
  min-height: 44px;
  margin: 16px 0 0;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--jz-blue);
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.license-gate .license-message {
  min-height: 26px;
  margin: 16px 0 0;
  color: var(--jz-ink2);
  font-size: 14px;
  line-height: 1.6;
}
.license-gate .license-message.is-success { color: #6ee7b7; }
.license-gate .license-message.is-error { color: #ff9d9d; }
.license-gate .license-message.is-info { color: var(--jz-blue); }

@media (max-width: 600px) {
  .license-gate { padding: 28px 16px; }
  .license-gate .license-brand { font-size: 18px; }
  .license-gate .license-card { padding: 30px 22px 28px; }
  .license-gate #license-title { margin-top: 14px; font-size: 30px; }
  .license-gate .license-intro { font-size: 14px; }
  .license-gate .license-form { margin-top: 24px; }
  .license-gate .license-input { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .license-gate * { transition: none !important; }
}
