/* Authoritative login layout: Stronghold branding left, employee access and DLC branding right. */

html body#strongholdApp.auth-pending {
  width: 100%;
  min-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
  background: #ffffff;
}

.auth-loading-screen {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: grid;
  width: 100vw;
  min-height: 100dvh;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  background: #ffffff;
}

.auth-loading-screen[hidden] {
  display: none !important;
}

.auth-loading-content {
  display: grid;
  gap: 24px;
  justify-items: center;
}

.auth-loading-logo {
  display: block;
  width: clamp(180px, 22vw, 260px);
  max-width: min(64vw, 260px);
  height: auto;
  border-radius: 22%;
}

.auth-loading-spinner {
  width: 38px;
  height: 38px;
  border: 4px solid #d8e2e4;
  border-top-color: #168f96;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .auth-loading-spinner {
    animation-duration: 1.6s;
  }
}

html body#strongholdApp.login-active,
html body#strongholdApp.login-active * {
  box-sizing: border-box;
  letter-spacing: 0 !important;
}

html body#strongholdApp.login-active {
  width: 100%;
  min-height: 100dvh !important;
  height: 100dvh !important;
  overflow: hidden !important;
  background: #d3e1e4 !important;
  color: #172b34 !important;
}

html body#strongholdApp.login-active .login-screen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  display: grid !important;
  place-items: center !important;
  width: 100vw !important;
  min-height: 100dvh !important;
  padding: 24px !important;
  overflow: auto !important;
  overscroll-behavior: contain !important;
  background: #d3e1e4 !important;
}

html body#strongholdApp.login-active .login-panel {
  width: min(960px, 100%) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body#strongholdApp.login-active .login-panel-shell {
  display: grid !important;
  grid-template-columns: minmax(0, 1.03fr) minmax(390px, 0.97fr) !important;
  min-height: 640px !important;
  overflow: hidden !important;
  border: 1px solid #9eb2b8 !important;
  border-radius: 8px !important;
  background: #f1f6f7 !important;
  box-shadow: 0 20px 46px rgba(22, 48, 57, 0.19) !important;
}

html body#strongholdApp.login-active .login-brand-panel {
  position: relative !important;
  display: grid !important;
  align-content: center !important;
  gap: 22px !important;
  min-width: 0 !important;
  min-height: 640px !important;
  padding: 46px 44px !important;
  overflow: hidden !important;
  color: #f7fbfc !important;
  background: #183743 !important;
}

html body#strongholdApp.login-active .login-brand-panel::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  pointer-events: none !important;
  background: url("./login-stronghold-blueprint.png") no-repeat right -78px bottom -250px / 138% auto !important;
  opacity: 0.34 !important;
}

html body#strongholdApp.login-active .login-brand-panel > * {
  position: relative !important;
  z-index: 1 !important;
}

html body#strongholdApp.login-active .login-brand-panel .eyebrow,
html body#strongholdApp.login-active .login-form-head .eyebrow {
  margin: 0 !important;
  color: #36b4c1 !important;
  font-family: "Bahnschrift", "Segoe UI", Arial, sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
  transform: none !important;
}

html body#strongholdApp.login-active .login-brand-title {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  gap: 2px !important;
  text-align: center !important;
  transform: none !important;
  color: #ffffff !important;
}

html body#strongholdApp.login-active .login-brand-name {
  color: #ffffff !important;
  font-family: "Ringbearer", "Baskerville Old Face", "Palatino Linotype", serif !important;
  font-size: clamp(3rem, 5vw, 4.65rem) !important;
  font-weight: 700 !important;
  line-height: 0.94 !important;
}

html body#strongholdApp.login-active .login-brand-subtitle {
  color: #d4e5e8 !important;
  font-family: "Bahnschrift", "Segoe UI", Arial, sans-serif !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
}

html body#strongholdApp.login-active .login-brand-copy {
  max-width: 28rem !important;
  margin: 2px 0 0 !important;
  color: #e5eef0 !important;
  font-size: 0.96rem !important;
  line-height: 1.55 !important;
}

html body#strongholdApp.login-active .login-brand-points {
  display: grid !important;
  gap: 15px !important;
}

html body#strongholdApp.login-active .login-brand-points span {
  display: grid !important;
  grid-template-columns: 10px 1fr !important;
  align-items: start !important;
  gap: 11px !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #f3f8f9 !important;
  font-size: 0.86rem !important;
  font-weight: 650 !important;
  line-height: 1.4 !important;
}

html body#strongholdApp.login-active .login-brand-points span::before {
  content: "" !important;
  display: block !important;
  width: 8px !important;
  height: 8px !important;
  margin-top: 4px !important;
  border-radius: 50% !important;
  background: #45c4d0 !important;
  box-shadow: 0 0 0 4px rgba(69, 196, 208, 0.14) !important;
}

html body#strongholdApp.login-active .login-form-panel {
  display: grid !important;
  grid-template-rows: auto auto auto minmax(190px, 1fr) !important;
  align-content: stretch !important;
  gap: 16px !important;
  min-width: 0 !important;
  padding: 36px 38px 0 !important;
  overflow: hidden !important;
  background: #f4f8f9 !important;
}

html body#strongholdApp.login-active .login-form-head {
  display: grid !important;
  gap: 6px !important;
}

html body#strongholdApp.login-active .login-form-head h2 {
  margin: 0 !important;
  color: #172b34 !important;
  font-family: "Bahnschrift", "Segoe UI", Arial, sans-serif !important;
  font-size: 2rem !important;
  font-weight: 850 !important;
  line-height: 1.05 !important;
  transform: none !important;
}

html body#strongholdApp.login-active .login-form-head .helper {
  max-width: 25rem !important;
  margin: 0 !important;
  color: #62727a !important;
  font-size: 0.84rem !important;
  line-height: 1.42 !important;
  transform: none !important;
}

html body#strongholdApp.login-active .login-fields {
  display: grid !important;
  gap: 13px !important;
  transform: none !important;
}

html body#strongholdApp.login-active .login-fields label,
html body#strongholdApp.login-active .login-fields label + label {
  display: grid !important;
  gap: 6px !important;
  margin: 0 !important;
  color: #324952 !important;
  font-size: 0.77rem !important;
  font-weight: 750 !important;
  transform: none !important;
}

html body#strongholdApp.login-active .login-fields input {
  width: 100% !important;
  min-width: 0 !important;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 13px !important;
  border: 1px solid #b4c5ca !important;
  border-radius: 6px !important;
  outline: 0 !important;
  background: #ffffff !important;
  color: #172b34 !important;
  font-size: 0.94rem !important;
  box-shadow: inset 0 1px 2px rgba(8, 25, 35, 0.04) !important;
}

html body#strongholdApp.login-active .login-fields input:focus {
  border-color: #2798a7 !important;
  box-shadow: 0 0 0 3px rgba(39, 152, 167, 0.17) !important;
}

html body#strongholdApp.login-active button.login-submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 18px !important;
  border: 1px solid #1c5260 !important;
  border-left: 4px solid #34bdca !important;
  border-radius: 6px !important;
  background: #173e4c !important;
  color: #ffffff !important;
  font-family: "Bahnschrift", "Segoe UI", Arial, sans-serif !important;
  font-size: 0.82rem !important;
  font-weight: 850 !important;
  text-shadow: none !important;
  box-shadow: 0 7px 16px rgba(8, 25, 35, 0.18) !important;
  transform: none !important;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease !important;
}

html body#strongholdApp.login-active button.login-submit:hover,
html body#strongholdApp.login-active button.login-submit:focus-visible {
  border-color: #34bdca !important;
  background: #205261 !important;
  box-shadow: 0 8px 18px rgba(8, 25, 35, 0.22), 0 0 0 3px rgba(52, 189, 202, 0.15) !important;
  transform: none !important;
}

html body#strongholdApp.login-active .login-footer-logo-wrap {
  align-self: end !important;
  width: calc(100% + 76px) !important;
  height: 226px !important;
  margin: 0 -38px !important;
  overflow: hidden !important;
  border-top: 1px solid #8ca1a8 !important;
  background: #31393c !important;
}

html body#strongholdApp.login-active .login-footer-logo {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  margin: 0 !important;
  object-fit: cover !important;
  object-position: center 53% !important;
  transform: none !important;
}

@media (max-width: 720px) {
  html body#strongholdApp.login-active {
    height: auto !important;
    min-height: 100dvh !important;
    overflow: auto !important;
  }

  html body#strongholdApp.login-active .login-screen {
    position: relative !important;
    min-height: 100dvh !important;
    padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom)) !important;
  }

  html body#strongholdApp.login-active .login-panel {
    width: min(100%, 390px) !important;
  }

  html body#strongholdApp.login-active .login-panel-shell {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
  }

  html body#strongholdApp.login-active .login-brand-panel {
    min-height: 150px !important;
    padding: 28px 22px 22px !important;
    gap: 8px !important;
    text-align: center !important;
  }

  html body#strongholdApp.login-active .login-brand-panel::after {
    background-position: center 39% !important;
    background-size: 136% auto !important;
    opacity: 0.28 !important;
  }

  html body#strongholdApp.login-active .login-brand-panel .eyebrow,
  html body#strongholdApp.login-active .login-brand-copy,
  html body#strongholdApp.login-active .login-brand-points {
    display: none !important;
  }

  html body#strongholdApp.login-active .login-brand-title {
    width: 100% !important;
    max-width: 100% !important;
    align-items: center !important;
    transform: none !important;
  }

  html body#strongholdApp.login-active .login-brand-name {
    font-size: clamp(2.7rem, 15vw, 3.65rem) !important;
  }

  html body#strongholdApp.login-active .login-brand-subtitle {
    font-size: 0.61rem !important;
  }

  html body#strongholdApp.login-active .login-form-panel {
    grid-template-rows: auto auto auto 190px !important;
    gap: 12px !important;
    padding: 22px 20px 0 !important;
  }

  html body#strongholdApp.login-active .login-form-head h2 {
    font-size: 1.55rem !important;
  }

  html body#strongholdApp.login-active .login-form-head .helper {
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
  }

  html body#strongholdApp.login-active .login-fields {
    gap: 10px !important;
  }

  html body#strongholdApp.login-active .login-fields input,
  html body#strongholdApp.login-active button.login-submit {
    height: 44px !important;
    min-height: 44px !important;
  }

  html body#strongholdApp.login-active .login-footer-logo-wrap {
    width: calc(100% + 40px) !important;
    height: 190px !important;
    margin: 0 -20px !important;
  }
}

@media (max-width: 720px) and (max-height: 690px) {
  html body#strongholdApp.login-active .login-brand-panel {
    min-height: 110px !important;
    padding: 18px 20px 14px !important;
  }

  html body#strongholdApp.login-active .login-brand-name {
    font-size: 2.55rem !important;
  }

  html body#strongholdApp.login-active .login-form-panel {
    grid-template-rows: auto auto auto 130px !important;
    gap: 9px !important;
    padding-top: 14px !important;
  }

  html body#strongholdApp.login-active .login-form-head .helper {
    display: none !important;
  }

  html body#strongholdApp.login-active .login-fields input,
  html body#strongholdApp.login-active button.login-submit {
    height: 40px !important;
    min-height: 40px !important;
  }

  html body#strongholdApp.login-active .login-footer-logo-wrap {
    height: 130px !important;
  }
}
