/* Navy Federal — computed metrics from live DOM, class surface matched to nfcu-preauth-* / bb-* */

/* ── fonts ── */
@font-face { font-family: SourceSansPro; font-weight: 300; src: url(../assets/fonts/Source_Sans_Pro/SourceSansPro-Light.ttf); }
@font-face { font-family: SourceSansPro; font-weight: 400; src: url(../assets/fonts/Source_Sans_Pro/SourceSansPro-Regular.ttf); }
@font-face { font-family: SourceSansPro; font-weight: 600; src: url(../assets/fonts/Source_Sans_Pro/SourceSansPro-SemiBold.ttf); }
@font-face { font-family: SourceSansPro; font-weight: 700; src: url(../assets/fonts/Source_Sans_Pro/SourceSansPro-Bold.ttf); }

:root {
  --bs-font: "SourceSansPro","Helvetica Neue",Helvetica,Arial,sans-serif;
  --nf-navy: #0F3D70;
  --nf-orange: #ED780F;
  --nf-orange-hover: #d96b0d;
  --nf-input-border: #959593;
  --nf-gray-card: #F6F6F6;
  --nf-gray-input-focus: #0667BA;
}

/* ── base ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--bs-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #383a3a;
  background-color: #fff;
  overflow-x: hidden;
}
img { border: 0; max-width: 100%; }
a { text-decoration: none; }
button { font-family: inherit; }

/* ── layout ── */
.bb-page-layout { display: flex; flex-direction: column; min-height: 100vh; }
.bb-layout__main { flex: 1 1 auto; }

/* ── topbar ── */
.nfcu-preauth-topbar {
  background: linear-gradient(90deg, #1a4d7a 0%, #0F3D70 55%, #0b2f58 100%);
  color: #fff;
  box-shadow: 0 3px 6px rgba(0,0,0,.16);
}
.bb-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  gap: 16px;
}
.logo-container { display: flex; align-items: center; }
.logo-container a { display: inline-flex; align-items: center; }
.nfcu-logo { height: 44px; width: auto; max-width: 200px; display: block; object-fit: contain; }

.pre-auth-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.pre-auth-links .routing-number-d { color: #fff; }
.icon-link { color: #fff; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; }
.icon-link:hover { color: #fff; text-decoration: underline; }
.text-white { color: #fff; }

/* ── hero band — gradient page bg + two-column at desktop ── */
.top-section-background {
  background-image: linear-gradient(rgb(144,195,240), rgb(195,225,250));
  background-position: 50% 50%;
  padding: 0;
  min-height: 573px;
}
.nfcu-core-content-block {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 16px 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 964px) {
  .nfcu-core-content-block {
    grid-template-columns: minmax(0, 704px) 1fr;
    align-items: start;
  }
}
.hero-copy-col { min-width: 0; }
.hero-illustration-col { display: none; }
@media (min-width: 964px) {
  .hero-illustration-col { display: block; padding-top: 40px; }
  .hero-illustration-col svg, .hero-illustration-col img { display: block; max-width: 100%; height: auto; }
}

h1.header-feature-alt-accent-1 {
  font-size: 24px;
  font-weight: 600;
  line-height: 36px;
  color: #0F3D70;
  margin: 0 0 8px;
}

/* ── signed-out banner ── */
.nfcu-memo-text-banner {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background-color: #fff;
  border-left: 4px solid var(--nf-navy);
  font-size: 14px;
  color: #383939;
  margin-bottom: 16px;
}
.banner-message { flex: 1 1 auto; }

/* ── credential card — exact geometry ── */
.credentialFormPanel {
  background-color: var(--nf-gray-card);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  border-radius: 0;
  padding: 0;
  margin: 24px 0;
  max-width: 629px;
  width: 100%;
}
.credentialFormBorder {
  padding: 20px;
}
.credential-form-separator {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 45px;
  margin: 0 0 8px;
  border: 0;
}
.credential-form-separator::before {
  content: "";
  width: 24px; height: 24px;
  flex: 0 0 auto;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230c0d0e'><path d='M17 8h-1V6a4 4 0 1 0-8 0v2H7a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2Zm-7-2a2 2 0 1 1 4 0v2h-4V6Zm7 14H7V10h10v10Z'/></svg>");
}
.bb-icon-lock { display: none; }
h2.header-subheader {
  font-size: 20px;
  font-weight: 400;
  line-height: 36px;
  color: rgb(12,13,14);
  margin: 0 0 8px;
}

/* ── form — vertical stack, full width ── */
#loginForm {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.field { display: flex; flex-direction: column; }
#loginForm label {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #383a3a;
  margin: 0 0 8px;
}

/* ── inputs — 44px tall, 2px border, 6px radius ── */
.form-control {
  display: block;
  width: 100%;
  height: 44px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
  color: #383a3a;
  background-color: #fff;
  border: 2px solid var(--nf-input-border);
  border-radius: 6px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus {
  border-color: var(--nf-gray-input-focus);
  box-shadow: 0 0 0 1px var(--nf-gray-input-focus);
}
.form-control::placeholder { color: #9c9c9d; }

/* ── password group — 44px tall, split border radius ── */
.bb-input-password .input-group {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 44px;
}
.bb-input-password__input {
  flex: 1 1 auto;
  height: 44px;
  padding: 8px 16px;
  border: 2px solid var(--nf-input-border);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  background: #fff;
  font-family: inherit;
  font-size: 16px;
  color: #383a3a;
  outline: none;
}
.bb-input-password__input:focus { border-color: var(--nf-gray-input-focus); }
.bb-input-password__visibility-toggle-button {
  flex: 0 0 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 2px solid var(--nf-input-border);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: #fff;
  cursor: pointer;
  color: #383a3a;
}
.bb-input-password__visibility-toggle-button:hover { color: #0F3D70; }
.bb-input-password__visibility-toggle-button:focus { outline: 2px solid var(--nf-gray-input-focus); outline-offset: -2px; }
.bb-icon-visibility {
  display: inline-block;
  width: 20px; height: 20px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23383939' stroke-width='2'><path d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7S1 12 1 12Z'/><circle cx='12' cy='12' r='3'/></svg>");
}
.bb-icon-visibility::before { content: none; }

/* ── submit — full width under the form, orange, 20px font ── */
.sign-in-button {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0;
  background-color: var(--nf-orange);
  border: 1px solid var(--nf-orange);
  border-radius: 6px;
  color: #fff;
  font-family: inherit;
  font-size: 20px;
  font-weight: 600;
  line-height: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  cursor: pointer;
  transition: background-color .15s ease;
}
.sign-in-button:hover:not(:disabled) { background-color: var(--nf-orange-hover); border-color: var(--nf-orange-hover); }
.sign-in-button:focus-visible { outline: 2px solid #0F3D70; outline-offset: 2px; }
.sign-in-button:disabled { background-color: #d3d3d4; border-color: #d3d3d4; cursor: not-allowed; }

/* ── sign-in help row ── */
.sign-in-help-row {
  margin-top: 16px;
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.sign-in-help-link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #0667BA;
}
.sign-in-help-link:hover { text-decoration: underline; }
.sign-in-help-sub {
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #68696a;
  margin-top: 2px;
}

/* ── bottom band — navy ── */
.sign-in-bottom-section {
  background-color: var(--nf-navy);
  padding: 24px 16px;
}
.link-ui-box-items-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto 48px;
  padding: 0 16px;
  justify-content: center;
}
.link-ui-box {
  flex: 1 1 240px;
  max-width: 360px;
  background: #fff;
  border-radius: 0;
  padding: 32px 48px;
  margin: 72px 8px 0 0;
  box-shadow: 0 2px 4px rgba(0,0,0,.2);
  text-align: center;
}
.link-ui-box .header-heading {
  font-size: 16px;
  font-weight: 600;
  color: #0F3D70;
  margin: 0 0 8px;
}
.action-link { color: #0667BA; font-size: 14px; font-weight: 600; }
.action-link:hover { text-decoration: underline; }

/* ── footer ── */
.nfcu-footer {
  background-color: #fff;
  color: #383a3a;
  padding: 24px 16px;
  font-size: 14px;
  line-height: 21px;
}
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.routing-container {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: center;
  margin-bottom: 16px; color: #383939;
}
.routing-container a { color: #0667BA; }
.subnav {
  display: flex; flex-wrap: wrap; gap: 20px; list-style: none;
  padding: 0; margin: 0 0 16px; justify-content: center;
}
.subnav a { color: #383939; }
.subnav a:hover { text-decoration: underline; }
.copyright { text-align: center; color: #68696a; font-size: 12px; margin: 8px 0 0; }

/* desktop row layout — appended, overrides the stacked default at ≥769px */
@media (min-width: 769px) {
  #loginForm { flex-direction: row; align-items: flex-end; gap: 16px; }
  #loginForm .field:nth-child(1) { flex: 0 0 180px; }
  #loginForm .field:nth-child(2) { flex: 1 1 auto; }
  #loginForm .field:nth-child(3) { flex: 0 0 auto; }
  #loginForm .sign-in-button { width: auto; min-width: 110px; padding: 0 24px; }
}
