/* ===========================================================================
   Reconstructed component styles for the Banno / Jack Henry login page.

   On the live site these live as Lit `static styles` inside each web
   component's shadow root (delivered in JS, not in any .css file). We render
   the same custom-element tag names as flat light DOM, so the selectors below
   translate the original `:host` / `::slotted()` rules to descendant selectors.
   All colors/dimensions come from the institution light theme (defined on
   `html {}` in inline-styles.css) via the same CSS custom properties the
   originals used, so the values stay pixel-exact.
   =========================================================================== */

html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: var(
    --jha-base-font-family,
    'roboto',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    'Helvetica Neue',
    sans-serif
  );
  background-color: var(--dashboard-page-background-color);
}

/* --- banno-web root (shadow: bg + full-page hero + slotted content) -------- */
banno-web {
  display: block;
  position: relative;
  min-height: 100vh;
  background-color: var(--dashboard-page-background-color);
  scroll-behavior: smooth;
}

/* --- background hero: full-page photo (fullPage => no gradient filter) ----- */
bannoweb-background-hero {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
}
bannoweb-background-hero .bg {
  position: absolute;
  inset: 0;
  background-image: url(/images/fi-assets/security-federal-bank/security-federal-bank-background-landscape-7df3e01e.png);
  background-position: top;
  background-size: cover;
}

/* --- login shell (sits above the hero) ------------------------------------ */
bannoweb-login {
  display: block;
  position: relative;
  z-index: 1;
}
bannoweb-login main {
  display: block;
}
bannoweb-login article {
  margin-left: var(--jha-card-article-margin-left, 24px);
  padding-right: var(--jha-card-article-padding-right, 24px);
  margin-bottom: var(--jha-card-article-margin-bottom, 18px);
  /* slotted-into-jha-card contributes the bottom padding */
  padding-bottom: var(--jha-card-article-padding-bottom, 18px);
  margin-top: 0;
  padding-top: 0;
}

/* --- login-steps: column layout, card centered, footer pinned to bottom ---- */
bannoweb-login-steps {
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  display: flex;
  position: relative;
}
bannoweb-login-steps .login-wrapper {
  flex: 1 0 auto;
  justify-content: center;
  align-items: center;
  display: flex;
}

/* --- the card ------------------------------------------------------------- */
bannoweb-login-steps jha-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 480px;
  margin: 32px 8px;
  padding: 20px 40px 0;
  display: block;
  background-color: var(--jha-component-background-color, #fff);
  box-shadow: var(--jha-card-box-shadow, 0 1px 1px 0 #0000003d, 0 1px 4px #0000001f);
  border-radius: var(--jha-card-border-radius, 3px);
}
bannoweb-login-steps jha-card img {
  -ms-interpolation-mode: bicubic;
  width: auto;
  height: 80px;
  margin: 0 auto;
  display: block;
}

/* --- card header (logo) --------------------------------------------------- */
bannoweb-login-steps jha-card-header {
  display: block;
  height: 80px;
}
bannoweb-login-steps jha-card-header .logo-wrap {
  height: 80px;
  display: block;
}

/* --- floating-group: Material outlined input with floating label ---------- */
jha-form-floating-group {
  display: block;
  position: relative;
  padding-top: var(--jha-form-floating-group-padding-top, 12px);
  margin-bottom: var(--jha-form-floating-group-margin-bottom, 16px);
}
bannoweb-login-username jha-form-floating-group {
  margin-top: -12px;
}
jha-form-floating-group input {
  font-family: inherit;
  display: block;
  width: 100%;
  font-size: 14px;
  background-color: transparent;
  color: var(--jha-text-dark);
  border-radius: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
jha-form-floating-group[outline] input {
  border: 1px solid
    var(--jha-form-floating-group-outline-border-color, var(--jha-border-color, #8c989f));
  box-sizing: border-box;
  border-radius: 4px;
  transition: all 0.2s ease;
  height: auto;
  padding: 18px 12px;
}
jha-form-floating-group[outline][has-focus] input,
jha-form-floating-group[outline] input:focus {
  outline: none;
  border-color: var(--jha-text-theme, #3aaeda);
  box-shadow: 0 0 0 1px var(--jha-text-theme, #3aaeda);
}
jha-form-floating-group[outline] .label {
  position: absolute;
  pointer-events: none;
  border-radius: 3px;
  font-size: var(--jha-form-floating-group-label-font-size, 16px);
  color: var(--jha-input-placeholder-color, var(--jha-text-base, #707070));
  background-color: var(--jha-component-background-color, #fff);
  font-weight: 400;
  padding: 3px 4px;
  transform-origin: 0 center;
  left: 8px;
  top: 28px;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.1, 0.5, 0.1, 1);
}
jha-form-floating-group[outline][has-focus] .label,
jha-form-floating-group[outline][has-value] .label {
  transform: translateY(-28px) scale(0.75);
}
jha-form-floating-group[outline][has-focus] .label {
  color: var(--jha-text-theme, #3aaeda);
}

/* --- flex-wrapper rows ---------------------------------------------------- */
bannoweb-flex-wrapper {
  justify-content: space-between;
  align-items: center;
  display: flex;
}
bannoweb-login-username bannoweb-flex-wrapper {
  justify-content: flex-end;
}
bannoweb-login-username bannoweb-flex-wrapper.space-between {
  justify-content: space-between;
}

/* --- login-username: form + links ---------------------------------------- */
bannoweb-login-username {
  display: block;
}
bannoweb-login-username .text-center {
  text-align: center;
}
bannoweb-login-username .text-left {
  text-align: left;
  line-height: 18px;
}
bannoweb-login-username a {
  font-weight: 500;
  display: inline-block;
  text-decoration: none;
  color: var(--jha-text-theme);
}
bannoweb-login-username a.forgot-link {
  line-height: var(--jha-button-line-height, 34px);
  margin-top: -6px;
  padding: 1px;
  display: inline-block;
}

/* --- jha-button (Continue) ------------------------------------------------ */
jha-button {
  text-align: center;
  touch-action: manipulation;
  cursor: pointer;
  margin-bottom: 0;
  display: inline-block;
}
bannoweb-login-username jha-button[type='submit'] {
  margin: 30px 0 30px auto;
}
jha-button > button {
  -webkit-appearance: none;
  display: inline-flex;
  justify-content: center;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  background-image: none;
  background-color: var(--jha-button-background, var(--jha-color-primary, #006ee4));
  color: var(--jha-button-text, var(--jha-text-white, #fff));
  padding: 0 18px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  line-height: 34px;
  border-radius: var(--jha-button-border-radius, 8px);
  box-sizing: border-box;
  overflow: hidden;
  align-items: center;
  transition: background-color 0.2s;
  position: relative;
}
jha-button[large] > button {
  line-height: 48px;
  padding-left: 27px;
  padding-right: 27px;
}
jha-button[wide] > button {
  padding-left: 27px;
  padding-right: 27px;
}
jha-button > button:hover,
jha-button > button:focus-visible {
  background-color: var(--jha-button-background-hover, var(--jha-color-primary, #006ee4));
}

/* --- footer --------------------------------------------------------------- */
bannoweb-footer {
  background-color: var(--footer-background-color);
  color: var(--footer-text-color);
  text-align: center;
  z-index: 1;
  padding: 17px 20px;
  font-size: 12px;
  line-height: 1.5;
  display: block;
  position: relative;
  box-shadow: 0 -1px #0000001a;
}
bannoweb-footer span {
  margin: 0 7px;
}
bannoweb-footer .ehl-icon {
  fill: var(--footer-text-color);
  display: inline-block;
  vertical-align: middle;
}
bannoweb-footer a {
  color: var(--footer-link-text-color);
  display: inline-block;
  text-decoration: none;
}
bannoweb-footer br {
  display: none;
}
@media (max-width: 490px) {
  bannoweb-footer {
    padding: 20px;
  }
  bannoweb-footer br {
    display: block;
  }
  bannoweb-footer .end-of-line {
    display: none;
  }
}

/* --- responsive: card padding at small widths (from login-steps) ---------- */
@media (max-width: 600px) {
  bannoweb-login-steps jha-card {
    margin-top: 40px;
    padding: 20px;
  }
}
@media (max-width: 480px) {
  bannoweb-login article {
    margin-left: 0;
    padding-right: 0;
  }
}
@media (max-width: 380px) {
  bannoweb-login-steps jha-card-header img {
    width: auto;
    /* At <=380 the original lets the logo grow to fill the header box (which is
       narrower than the card content); it settles at ~287px at 375px wide. */
    max-width: min(100%, 287px);
    height: auto;
  }
}

/* ===========================================================================
   Startup splash: brand dark-green field with a centered white spinner.
   =========================================================================== */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-button-color, rgb(35, 64, 60));
  transition: opacity 0.3s ease;
}
.splash--hide {
  opacity: 0;
  pointer-events: none;
}
.splash__spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  animation: splash-spin 0.8s linear infinite;
}
@keyframes splash-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .splash__spinner {
    animation-duration: 2s;
  }
}
