/* v104 Company font Saans for both Admin and Staff login screens */
@font-face {font-family:"Saans";src:url("/fonts/Saans-Regular-1.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap;}
@font-face {font-family:"Saans";src:url("/fonts/Saans-Medium-1.ttf") format("truetype");font-weight:500;font-style:normal;font-display:swap;}
@font-face {font-family:"Saans";src:url("/fonts/Saans-SemiBold-1.ttf") format("truetype");font-weight:600;font-style:normal;font-display:swap;}
@font-face {font-family:"Saans";src:url("/fonts/Saans-Bold-1.ttf") format("truetype");font-weight:700;font-style:normal;font-display:swap;}
html body #loginScreenOverlay {
  background:linear-gradient(to right,#cfc9bd 1px,transparent 1px),linear-gradient(to bottom,#cfc9bd 1px,transparent 1px),#f1efe9!important;
  background-size:48px 48px!important;
  animation:login-grid-drift 24s linear infinite;
  overflow-x:clip;
}
@keyframes login-grid-drift {to{background-position:48px 48px}}
#loginScreenOverlay > div:first-child {position:relative;z-index:2}
#loginScreenOverlay.paused {animation-play-state:paused}
@media(prefers-reduced-motion:reduce){#loginScreenOverlay{animation:none!important}}

.idle-cat{position:absolute;top:0;left:0;width:clamp(165px,18vw,255px);pointer-events:none;z-index:0;will-change:transform}
.idle-cat svg{display:block;overflow:visible}
.cat-frames{width:100%;aspect-ratio:1;background-image:url(/brand/login-cat/walking.png);background-size:400% 200%;background-repeat:no-repeat;animation:walkCycle .76s steps(1,end) infinite}
.idle-cat.peeking .cat-frames{background-image:url(/brand/login-cat/peeking.png);background-size:300% 200%;animation:none}
.idle-cat.peeking .direction{transform:none!important}
.idle-cat.side-peeking .cat-frames{background-image:url(/brand/login-cat/side-peeking.png);background-size:400% 100%;aspect-ratio:3/4;animation:none;clip-path:inset(0 0 0 5%)}
.idle-cat.extra .cat-frames{background-image:url(/brand/login-cat/gestures.png);background-size:400% 300%;animation:extraPose 1.9s steps(1,end) infinite}
.stretch{--row:0%}
.yawn{--row:50%}
.sniff{--row:100%}
@keyframes extraPose{0%,100%{background-position:0 var(--row)}
25%{background-position:33.333% var(--row)}
50%{background-position:66.667% var(--row)}
75%{background-position:100% var(--row)}
}
.climbing .cat-frames{animation-duration:.55s}
.fleeing .cat-frames{animation-duration:.25s}
.idle-cat.startled .cat-frames{background-image:url(/brand/login-cat/gestures.png);background-size:400% 300%;background-position:33.333% 50%;animation:cat-startle 1.5s ease-out both;transform-origin:50% 85%}
@keyframes cat-startle{0%{transform:scale(1)}30%{transform:scale(.94,1.08) rotate(-3deg)}65%{transform:scale(1.03,.98) rotate(1deg)}100%{transform:scale(1)}}
.groom .cat-frames{animation:groomCycle 1.2s steps(1,end) infinite}
@keyframes walkCycle{0%,100%{background-position:0 0}
25%{background-position:33.3333% 0}
50%{background-position:66.6667% 0}
75%{background-position:100% 0}
}
@keyframes groomCycle{0%,100%{background-position:0 100%}
25%{background-position:33.3333% 100%}
50%{background-position:66.6667% 100%}
75%{background-position:100% 100%}
}

/* v52 Sign-in card: only the P logo, larger and centred in the charcoal box (admin and staff). */
html body #loginScreenOverlay .login-brand-only{display:flex;align-items:center;justify-content:center;min-height:300px;padding:36px 28px}
html body #loginScreenOverlay .login-brand-only img{display:block;height:210px;width:auto;max-width:100%;object-fit:contain;margin:0}
@media(max-width:640px){html body #loginScreenOverlay .login-brand-only{min-height:220px;padding:28px 16px}html body #loginScreenOverlay .login-brand-only img{height:150px}}

/* v62 Show / hide password eye inside the password box (js/password-eye.js), admin and Staff Portal sign-in. */
.pw-eye-wrap{position:relative;display:block;flex:1;min-width:0}
.pw-eye-wrap>input{width:100%;padding-right:46px!important}
html body .pw-eye{position:absolute;top:0!important;bottom:0!important;right:6px;margin:auto 0!important;transform:none!important;width:36px;height:36px;display:grid;place-items:center;padding:0!important;border:0!important;border-radius:8px;background:transparent!important;color:#8A8A8A!important;cursor:pointer;box-shadow:none!important;min-height:0}
html body .pw-eye:hover{color:#232323!important;background:#F5F4F1!important}
html body .pw-eye:focus-visible{outline:2px solid #A8896D;outline-offset:1px}
.pw-eye svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
html body button.pw-eye.portal-ripple-host{position:absolute!important} /* the press ripple must not move the eye out of the box */
html body .pw-eye{-webkit-tap-highlight-color:transparent}

/* v104 Unified Saans typography + Option 3 Admin Portal strip & Split Architectural Sign-In button */
html body #loginScreenOverlay,
html body #loginScreenOverlay :is(label, input, button, a, p, span, div, h1, h2, h3) {
  font-family: "Saans", "Segoe UI", Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
}
html body #loginScreenOverlay .login-brand-only {
  position: relative;
}
html body #loginScreenOverlay .login-admin-strip {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 6px 14px;
  text-align: center;
  background: rgba(140, 111, 85, 0.18);
  border-top: 1px solid rgba(201, 174, 146, 0.28);
  color: #DEC8B1;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.3;
  user-select: none;
}
/* Harmonize Staff login inputs/labels with Admin login card */
html body #loginScreenOverlay.staff-login-scene .staff-login-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #DFDAD2;
  box-shadow: 0 18px 42px rgba(32, 27, 22, 0.11);
  background: #FFFFFF;
}
html body #loginScreenOverlay.staff-login-scene #login {
  padding: 28px 32px 30px;
  margin: 0;
  border: 0;
  box-shadow: none;
  background: #FFFFFF;
}
html body #loginScreenOverlay.staff-login-scene #login label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  margin: 0 0 18px;
}
html body #loginScreenOverlay.staff-login-scene #login input {
  margin-top: 7px;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #1E293B;
  font-size: 15px;
  font-weight: 500;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
html body #loginScreenOverlay.staff-login-scene #login input:focus,
html body #loginScreenOverlay #loginForm input:focus {
  border-color: #8C6F55 !important;
  box-shadow: 0 0 0 3px rgba(140, 111, 85, 0.15) !important;
}
html body #loginScreenOverlay.staff-login-scene #login .pw-eye-wrap {
  margin-top: 7px;
}
html body #loginScreenOverlay.staff-login-scene #login .pw-eye-wrap > input {
  margin-top: 0;
}

/* Option 3: Split Architectural Arrow-Cap Sign-In button (Admin + Staff) */
html body #loginScreenOverlay button.login-split-btn {
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 0 0 18px !important;
  margin-top: 4px;
  border: 0 !important;
  border-radius: 11px !important;
  background: #252320 !important;
  color: #FAF8F5 !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  overflow: hidden !important;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(28, 24, 20, 0.18) !important;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
html body #loginScreenOverlay button.login-split-btn .login-split-lbl {
  color: #FAF8F5 !important;
}
html body #loginScreenOverlay button.login-split-btn .login-split-cap {
  width: 52px;
  height: 100%;
  background: #8C6F55;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: width 0.22s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease;
}
html body #loginScreenOverlay button.login-split-btn .login-split-cap svg {
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
html body #loginScreenOverlay button.login-split-btn:hover {
  background: #2F2B27 !important;
  box-shadow: 0 7px 18px rgba(28, 24, 20, 0.24) !important;
  transform: translateY(-1px);
}
html body #loginScreenOverlay button.login-split-btn:hover .login-split-cap {
  width: 62px;
  background: #9D7E62;
}
html body #loginScreenOverlay button.login-split-btn:hover .login-split-cap svg {
  transform: translateX(3px);
}
html body #loginScreenOverlay button.login-split-btn:active {
  transform: translateY(0) scale(0.992);
}
html body #loginScreenOverlay button.login-split-btn:focus-visible {
  outline: 2px solid #8C6F55;
  outline-offset: 2px;
}

/* v104 Keep login cat animated even when Admin in-app Reduced Motion is enabled, and align Staff Forgot link */
html body.portal-reduced-motion #loginScreenOverlay .idle-cat .cat-frames {
  animation-duration: 0.76s !important;
  animation-iteration-count: infinite !important;
}
html body.portal-reduced-motion #loginScreenOverlay .idle-cat.extra .cat-frames {
  animation-duration: 1.9s !important;
}
html body.portal-reduced-motion #loginScreenOverlay .idle-cat.groom .cat-frames {
  animation-duration: 1.2s !important;
}
html body.portal-reduced-motion #loginScreenOverlay .idle-cat.climbing .cat-frames {
  animation-duration: 0.55s !important;
}
html body.portal-reduced-motion #loginScreenOverlay .idle-cat.fleeing .cat-frames {
  animation-duration: 0.25s !important;
}
html body #loginScreenOverlay.staff-login-scene #login .forgot-link {
  text-align: center;
  margin-top: 14px;
}

/* v105 Admin login card alignment parity with Staff login card (rounded 16px card, crisp spacing, eye alignment) */
html body #loginScreenOverlay > div:first-child {
  border-radius: 16px !important;
  border: 1px solid #DFDAD2 !important;
  box-shadow: 0 18px 42px rgba(32, 27, 22, 0.11) !important;
  overflow: hidden !important;
}
html body #loginScreenOverlay #loginForm {
  padding: 28px 32px 26px !important;
}
html body #loginScreenOverlay #loginForm > div {
  margin-top: 0 !important;
  margin-bottom: 18px !important;
}
html body #loginScreenOverlay #loginForm > #loginBannerMessage.hidden {
  margin-bottom: 0 !important;
}
html body #loginScreenOverlay #loginForm label {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  margin-bottom: 7px !important;
}
html body #loginScreenOverlay #loginForm input[type="text"],
html body #loginScreenOverlay #loginForm input[type="password"] {
  height: 46px !important;
  padding: 0 14px !important;
  border-radius: 12px !important;
  border: 1px solid #CBD5E1 !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
}
html body #loginScreenOverlay #loginForm .pw-eye-wrap > input {
  padding-right: 46px !important;
}
html body #loginScreenOverlay #loginForm button.login-split-btn {
  margin-top: 22px !important;
}
html body #loginScreenOverlay #loginForm .forgot-link {
  text-align: center !important;
  margin-top: 14px !important;
  margin-bottom: 0 !important;
}

/* v116 Staff Portal two-step sign-in (same look as the sign-in form) */
html body #loginScreenOverlay.staff-login-scene #staff-mfa { padding: 26px 32px 28px; margin: 0; border: 0; box-shadow: none; background: #FFFFFF; }
#staff-mfa h2 { margin: 0 0 6px; font-size: 18px; color: #1E293B; }
#staff-mfa .staff-mfa-intro { margin: 0 0 16px; font-size: 13.5px; color: #475569; line-height: 1.5; }
#staff-mfa label { display: block; font-size: 14px; font-weight: 600; color: #334155; margin: 0 0 14px; }
#staff-mfa input[name=code] { display: block; width: 100%; box-sizing: border-box; margin-top: 7px; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid #CBD5E1; font-size: 20px; letter-spacing: .3em; text-align: center; }
#staff-mfa input[name=code]:focus { border-color: #8C6F55; box-shadow: 0 0 0 3px rgba(140,111,85,.15); outline: none; }
#staff-mfa .staff-mfa-remember { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 13px; }
#staff-mfa .staff-mfa-setup { text-align: center; margin: 0 0 14px; font-size: 12.5px; color: #475569; }
#staff-mfa .staff-mfa-setup img { display: block; margin: 0 auto 8px; background: #fff; border: 1px solid #E2E8F0; border-radius: 10px; padding: 6px; }
#staff-mfa .staff-mfa-setup code { font-size: 13px; letter-spacing: .06em; color: #1E293B; user-select: all; }
#staff-mfa .staff-mfa-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin-top: 12px; }
#staff-mfa button.link { background: none; border: 0; padding: 2px 0; color: #8C6F55; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
#staff-mfa #staff-mfa-message { min-height: 1.2em; margin: 10px 0 0; font-size: 13px; color: #B91C1C; }
#staff-mfa #staff-mfa-message[data-tone=ok] { color: #047857; }
/* Code step: smaller brand so the QR code and buttons fit on one screen */
html body #loginScreenOverlay .staff-login-card:has(#staff-mfa:not([hidden])) .login-brand-only { min-height: 0; padding: 18px 28px; }
html body #loginScreenOverlay .staff-login-card:has(#staff-mfa:not([hidden])) .login-brand-only img { height: 64px; }
html body #loginScreenOverlay #staff-mfa button.link { background: none !important; color: #8C6F55 !important; border: 0 !important; box-shadow: none !important; min-height: 0 !important; height: auto !important; width: auto !important; padding: 2px 0 !important; }
html body #loginScreenOverlay #staff-mfa button.link:hover { color: #5E4936 !important; }
