/* 公安勤务管理系统 · 通行验证页样式
 * 与系统主界面同一套色板：深蓝主色 + 金色点缀 */
:root {
  --ink: #16233a;
  --ink-2: #5a6b85;
  --ink-3: #93a3ba;
  --brand: #14509e;
  --brand-deep: #0d3568;
  --brand-2: #2d7ff9;
  --gold: #b8860b;
  --bg: #eef1f6;
  --surface: #ffffff;
  --border: #dfe6f0;
  --danger: #d64545;
  --radius: 18px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1100px 620px at 12% -8%, rgba(45, 127, 249, .16), transparent 62%),
    radial-gradient(900px 520px at 92% 6%, rgba(184, 134, 11, .12), transparent 60%),
    var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
}

.gate-page {
  width: 100%;
  max-width: 468px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.gate-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(16, 38, 76, .06), 0 18px 48px rgba(16, 38, 76, .12);
  overflow: hidden;
}

.gate-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 26px;
  background: linear-gradient(100deg, #0d3568 0%, #165aa8 55%, #1b6fd0 100%);
  color: #fff;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  color: var(--gold);
}

.brand-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.brand-text strong { font-size: 17px; font-weight: 700; letter-spacing: .02em; }
.brand-text span { font-size: 12px; color: rgba(255, 255, 255, .72); letter-spacing: .01em; }

.gate-body { padding: 30px 26px 26px; }

.gate-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 14px;
  padding: 5px 11px;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--brand);
  background: rgba(45, 127, 249, .10);
  border-radius: 999px;
}
.gate-pill span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(45, 127, 249, .16);
}

.gate-body h1 {
  margin: 0 0 12px;
  font-size: 27px;
  line-height: 1.3;
  letter-spacing: -.01em;
  font-weight: 800;
}

.gate-lead {
  margin: 0 0 24px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-2);
}

.gate-form { display: flex; flex-direction: column; gap: 9px; }

.gate-username { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.gate-form label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: .02em;
}

.password-field { position: relative; display: flex; }

.password-field input {
  width: 100%;
  height: 48px;
  padding: 0 74px 0 15px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background: #f7f9fc;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.password-field input::placeholder { color: var(--ink-3); }
.password-field input:focus {
  background: #fff;
  border-color: var(--brand-2);
  box-shadow: 0 0 0 4px rgba(45, 127, 249, .12);
}

.password-toggle {
  position: absolute;
  top: 6px; right: 6px;
  height: 36px;
  padding: 0 12px;
  font: inherit;
  font-size: 12.5px;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.password-toggle:hover { color: var(--brand); border-color: #c6d4e8; }
.password-toggle:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }

.gate-error {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--danger);
  min-height: 1.2em;
}
.gate-error[hidden] { display: none; }

.gate-submit {
  margin-top: 6px;
  height: 48px;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: .04em;
  color: #fff;
  background: linear-gradient(100deg, #0d3568 0%, #165aa8 60%, #1b6fd0 100%);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(13, 53, 104, .22);
  transition: transform .12s, box-shadow .15s, filter .15s;
}
.gate-submit:hover { filter: brightness(1.06); box-shadow: 0 8px 22px rgba(13, 53, 104, .28); }
.gate-submit:active { transform: translateY(1px); }
.gate-submit:disabled { cursor: progress; filter: saturate(.6) brightness(.95); }
.gate-submit:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; }

.gate-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 11.5px;
  color: var(--ink-3);
}
.gate-note span::before { content: "·"; margin-right: 6px; color: var(--brand-2); }

.gate-foot {
  margin: 0;
  text-align: center;
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: .02em;
}

@media (max-width: 420px) {
  .gate-body { padding: 24px 20px 22px; }
  .gate-brand { padding: 16px 20px; }
  .gate-body h1 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
