/* Canonical gate tokens; mirrored in DESIGN.md. Scoped away from wp-admin. */
html:has(body.login-password-protected) { background: #030303; color-scheme: dark; }
body.login-password-protected {
  --gate-bg: #030303; --gate-surface: #101412; --gate-text: #F7F7F3;
  --gate-muted: #B4BAB5; --gate-green: #72FF72; --gate-error: #FFB4AB;
  margin: 0; padding: 48px 20px; min-height: 100vh; min-height: 100svh;
  box-sizing: border-box; display: flex; align-items: center; justify-content: center;
  background: var(--gate-bg) !important; color: var(--gate-text);
  font-family: system-ui, -apple-system, sans-serif; position: relative; isolation: isolate;
  scrollbar-color: #47594d #030303; scrollbar-width: thin;
}
body.login-password-protected *, body.login-password-protected *::before,
body.login-password-protected *::after { box-sizing: border-box; }
body.login-password-protected::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(ellipse at center, #03030388 0%, #03030322 65%, #030303bb 100%);
}
body.login-password-protected::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .12;
  background: repeating-linear-gradient(0deg, transparent 0 3px, #72ff7214 3px 4px);
}
#hahohe-matrix-rain { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; opacity: .42; }
body.login-password-protected #password-protected-background { display: none !important; }
body.login-password-protected #login {
  position: relative; width: 100%; max-width: 460px; margin: 0; padding: 38px 34px 26px;
  border: 1px solid #72ff722b; border-radius: 16px;
  background: #080d0af0; box-shadow: 0 24px 100px #000a, 0 0 70px #72ff7205;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
body.login-password-protected #password-protected-logo { margin: 0 0 32px; }
body.login-password-protected #password-protected-logo a {
  background: none !important; color: var(--gate-green); text-indent: 0; margin: 0;
  width: 100%; height: auto; font: 600 22px/1.4 ui-monospace, monospace;
  letter-spacing: .28em; text-align: center; text-decoration: none; padding: 0 0 0 .28em;
}
body.login-password-protected #loginform {
  margin: 0; padding: 0; border: 0; box-shadow: none; background: transparent; overflow: visible;
  position: static !important; color: var(--gate-text);
}
body.login-password-protected .password-protected-text-above { margin: 0 0 30px; color: var(--gate-muted); }
body.login-password-protected .password-protected-text-above::before {
  content: 'SÚKROMNÝ PRÍSTUP'; display: block; margin-bottom: 14px;
  color: var(--gate-green); font: 500 10px/1.5 ui-monospace, monospace; letter-spacing: .18em;
}
body.login-password-protected .password-protected-text-above h1 {
  color: var(--gate-text) !important; font: 400 36px/1.12 Georgia, serif !important;
  letter-spacing: -.025em; margin: 0 0 18px !important;
}
body.login-password-protected .password-protected-text-above p { font-size: 14px; line-height: 1.7; }
body.login-password-protected #login label { color: var(--gate-muted); font-size: 13px; margin-bottom: 9px; display: block; }
body.login-password-protected #password_protected_pass {
  background: #030805 !important; color: var(--gate-text) !important;
  border: 1px solid #536959; border-radius: 8px; box-shadow: none;
  font: 400 18px/1.4 system-ui, sans-serif; width: 100%; height: 52px;
  margin: 0; padding: 12px 52px 12px 14px;
}
body.login-password-protected #password_protected_pass:focus { border-color: var(--gate-green); outline: 2px solid var(--gate-green); outline-offset: 3px; }
body.login-password-protected #pp-hide-show-password {
  color: var(--gate-muted); border: 0; border-radius: 6px; background: transparent;
  right: 3px; top: 3px; width: 46px; height: 46px; min-height: 46px; cursor: pointer;
}
body.login-password-protected #pp-hide-show-password:hover { color: var(--gate-green); background: #72ff7210; }
body.login-password-protected #loginform .submit { margin-top: 20px; float: none; }
body.login-password-protected #wp-submit {
  display: block; float: none; width: 100%; height: 50px; min-height: 50px;
  padding: 0 20px; border: 1px solid var(--gate-green); border-radius: 8px;
  background: var(--gate-green); color: #071209; box-shadow: none; text-shadow: none;
  font: 650 14px/48px system-ui, sans-serif; cursor: pointer; transition: background 120ms ease;
}
body.login-password-protected #wp-submit:hover { background: #9bff9b; }
body.login-password-protected #wp-submit:active { background: #58d958; }
body.login-password-protected #wp-submit:disabled { opacity: .65; cursor: wait; }
body.login-password-protected .password-protected-text-below {
  color: #98a49b; font-size: 12px; line-height: 1.7; margin-top: 25px; text-align: center; width: 100%;
}
body.login-password-protected #login_error, body.login-password-protected .message {
  background: #201612; color: var(--gate-error); border: 1px solid #ffb4ab66;
  box-shadow: none; border-radius: 8px; padding: 14px; font-size: 13px; line-height: 1.6;
}
body.login-password-protected #hahohe-motion {
  display: block; margin: 24px auto 0; padding: 10px 12px; min-height: 44px;
  border: 0; border-radius: 6px; background: transparent; color: #98a49b;
  font: 11px/1.5 ui-monospace, monospace; text-decoration: underline; text-underline-offset: 4px; cursor: pointer;
}
body.login-password-protected #hahohe-motion:hover { color: var(--gate-green); }
body.login-password-protected #login a:focus-visible,
body.login-password-protected #login button:focus-visible,
body.login-password-protected #wp-submit:focus-visible { outline: 2px solid var(--gate-green); outline-offset: 4px; }
body.login-password-protected #login a { color: var(--gate-green); }
body.login-password-protected .clear { display: none; }
@media (max-width: 480px) {
  body.login-password-protected { padding: 24px 20px; }
  body.login-password-protected #login { padding: 30px 24px 18px; }
  body.login-password-protected .password-protected-text-above h1 { font-size: 32px !important; }
}
@media (prefers-reduced-motion: reduce) { body.login-password-protected * { transition: none !important; } }
@media (forced-colors: active) {
  #hahohe-matrix-rain { display: none; }
  body.login-password-protected, body.login-password-protected #login { background: Canvas !important; color: CanvasText; }
  body.login-password-protected #login { border-color: CanvasText; }
}
