:root {
  --gate-navy: #17324e;
  --gate-blue: #20456a;
  --gate-cream: #efeee8;
  --gate-ink: #36424b;
  --bs-body-font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bs-body-color: var(--gate-ink);
  --bs-link-color: var(--gate-blue);
  --bs-link-hover-color: var(--gate-navy);
}
* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; display: flex; flex-direction: column; background: var(--gate-cream); line-height: 1.65; }
a { text-underline-offset: .23em; }
:focus-visible { outline: 3px solid #b84a00; outline-offset: 5px; }
.skip-link { position: fixed; top: -100px; left: 20px; padding: 12px 18px; background: #fff; z-index: 10; }
.skip-link:focus { top: 14px; }
.gate-header { width: min(100%, 1200px); margin: 0 auto; padding: 12px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.gate-brand { display: block; flex-shrink: 0; }
.gate-brand img { display: block; width: 116px; max-width: 100%; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.admin-link { color: var(--gate-navy); font-size: .875rem; font-weight: 600; padding: 10px 0; }
.gate-main { width: 100%; flex: 1; display: grid; place-items: center; padding: 16px 24px 48px; }
.gate-card { width: min(100%, 584px); background: #fff; border: 1px solid #dadfdc; padding: 42px 46px; box-shadow: 0 14px 48px #17324e08; }
.gate-status { color: #335368; font-size: .75rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; display: flex; align-items: center; gap: 9px; margin: 0 0 21px; }
.gate-status span { width: 8px; height: 8px; background: #d79513; border-radius: 50%; flex-shrink: 0; }
h1 { color: var(--gate-navy); font-size: clamp(2rem, 5.5vw, 2.75rem); line-height: 1.13; font-weight: 600; letter-spacing: -.045em; margin: 0 0 22px; }
.gate-intro { font-size: 1rem; margin-bottom: 28px; }
.gate-form-area { border-top: 1px solid #e2e6e7; padding-top: 25px; }
h2 { color: var(--gate-navy); font-size: 1.125rem; font-weight: 600; margin: 0 0 8px; }
#password-hint { color: #53616b; font-size: .875rem; margin-bottom: 22px; }
.form-label { font-size: .875rem; font-weight: 600; margin-bottom: 7px; color: var(--gate-navy); }
.form-control { min-height: 50px; border-radius: 3px; border-color: #9eafb9; font-size: 1rem; }
.form-control:focus { border-color: var(--gate-blue); box-shadow: 0 0 0 .2rem #20456a26; }
.form-control[aria-invalid="true"] { border-color: #b02a37; }
.btn-primary { --bs-btn-bg: var(--gate-blue); --bs-btn-border-color: var(--gate-blue); --bs-btn-hover-bg: var(--gate-navy); --bs-btn-hover-border-color: var(--gate-navy); --bs-btn-active-bg: var(--gate-navy); --bs-btn-active-border-color: var(--gate-navy); border-radius: 3px; margin-top: 14px; min-height: 50px; padding: 12px 20px; font-size: .9375rem; font-weight: 600; }
.btn-primary span { margin-left: 12px; }
.gate-note { color: #53616b; font-size: .75rem; line-height: 1.6; margin: 17px 0 0; }
.gate-error { border-radius: 3px; font-size: .875rem; overflow-wrap: anywhere; }
.gate-footer { padding: 0 24px 26px; text-align: center; color: #53616b; font-size: .75rem; }
.gate-footer p { margin: 0 0 6px; }
.gate-footer nav { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; }
@media (max-width: 575.98px) {
  .gate-header { padding: 8px 22px; gap: 16px; }
  .gate-brand img { width: 96px; }
  .gate-main { padding: 12px 18px 30px; }
  .gate-card { padding: 30px 24px; }
  .gate-status { font-size: .6875rem; }
  .gate-intro { font-size: .9375rem; }
  .admin-link { font-size: .8125rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
