/* Authentication forms only. Loaded after the facility overlay. */
#auth.panel {
  max-width: 410px;
  margin: clamp(24px, 6vh, 70px) auto;
  padding: 30px;
  border: 1px solid #dfe3e9;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 12px #24344c08;
}
#auth #auth-title { margin: 0 0 9px; font: 650 1.65rem/1.25 var(--bf-font); color: #253146; letter-spacing: -.025em; }
#auth > .bf-eyebrow { margin-bottom: 10px; color: #5c6e82; font-size: .66rem; }
#auth #auth-description { margin: 0 0 24px; color: #5f6d7e; font-size: .84rem; line-height: 1.6; }
#authForm .bf-auth-form { margin: 0; }
#authForm .bf-auth-field { position: relative; margin: 0 0 15px; }
#authForm .bf-auth-input-shell { position: relative; }
#authForm input {
  display: block;
  width: 100%;
  min-height: 51px;
  margin: 0;
  padding: 14px 13px;
  border: 1px solid #cbd1da;
  border-radius: 2px;
  color: #243247;
  background: #f7f8fa;
  font-size: .9rem;
  line-height: 1.4;
}
#authForm .bf-auth-field > label {
  position: absolute;
  top: 25px;
  left: 11px;
  z-index: 1;
  max-width: calc(100% - 62px);
  margin: 0;
  padding: 0 3px;
  transform: translateY(-50%);
  color: #596677;
  background: #f7f8fa;
  font-size: .82rem;
  font-weight: 400;
  line-height: 1.2;
  pointer-events: none;
}
#authForm .bf-auth-field:focus-within > label,
#authForm .bf-auth-field:has(input:not(:placeholder-shown)) > label {
  top: 0;
  color: #1c65ad;
  font-size: .72rem;
}
#authForm input:focus { outline: none; border-color: #1668b1; box-shadow: 0 0 0 1px #1668b1; }
#authForm .bf-auth-password input { padding-right: 52px; }
#authForm .bf-password-toggle {
  position: absolute;
  top: 3px;
  right: 3px;
  display: grid;
  place-items: center;
  width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 3px;
  color: #58677e;
  background: transparent;
  box-shadow: none;
}
#authForm .bf-password-toggle:hover { color: #145f9f; background: #e8edf3; }
#authForm .bf-password-toggle:focus-visible { outline: 2px solid #1668b1; outline-offset: -2px; }
#authForm .bf-forgot-password { display: inline-block; margin: 0 0 19px; color: #1a6bb3; font-size: .78rem; text-decoration: none; }
#authForm .bf-forgot-password:hover { text-decoration: underline; }
#authForm .bf-auth-continue {
  display: block;
  width: 100%;
  min-height: 47px;
  margin: 2px 0 0;
  padding: 12px;
  border: 1px solid #e4e6ea;
  border-radius: 2px;
  color: #243044;
  background: #e8e9ec;
  font-size: .86rem;
  font-weight: 500;
  box-shadow: none;
}
#authForm .bf-auth-continue:hover { color: #17243a; background: #dce0e6; }
#authForm .bf-auth-continue:disabled { opacity: .65; cursor: wait; }
#auth .bf-auth-links { margin: 19px 0 0; color: #465263; font-size: .78rem; }
#auth .bf-auth-help { margin: 14px 0 0; color: #65748a; font-size: .74rem; line-height: 1.6; }
#auth .bf-auth-links a, #auth .bf-auth-help a { color: #176bb6; text-decoration: none; }
#auth .bf-auth-links a:hover, #auth .bf-auth-help a:hover { text-decoration: underline; }
#auth #auth-feedback { margin: 0; color: #354f70; font-size: .8rem; white-space: pre-wrap; overflow-wrap: anywhere; }
#auth #auth-feedback:not(:empty) { margin: 0 0 20px; padding: 11px 12px; border: 1px solid #cbd9e9; border-radius: 4px; background: #f0f5fb; }
#auth #auth-passkeys { margin-top: 18px; }
#auth #bf16-login { width: 100%; min-height: 44px; border: 1px solid #c7d1df; border-radius: 3px; background: #fff; color: #385675; font-size: .76rem; font-weight: 500; }
#auth #bf16-login:hover { background: #eff4fa; }
#auth #auth-passkeys p:empty { display: none; }
#auth:not([data-mode=login]) #auth-passkeys { display: none; }
#auth .bf-access-note { margin-top: 23px; padding-top: 15px; color: #6a7788; font-size: .7rem; line-height: 1.6; }
@media (max-width: 480px) { #auth.panel { margin: 24px 14px; padding: 25px 22px; } }
