/* ============================================================
   Kameleo provider handoff - design matched to the captured
   sign-in page (designzd.html). Chrome order:
     header -> gray FDIC strip -> crimson .red-grad-bar-skin
     title band -> two-column content (form + app promo)
     -> gray-bground footer.
   ============================================================ */

:root {
  color-scheme: light;
  --red-grad: #dc1431;
  --blue-grad-top: #007dc3;
  --blue-grad-bottom: #0067b1;
  --blue-border: #124e89;
  --red-grad-top: #dc1431;
  --red-grad-bottom: #c41230;
  --red-border: #bb292b;
  --link-blue: #0067b1;
  --footer-bg: #f3efea;
  --ink: #333333;
  --muted: #666666;
  --line: #d5d5d5;
}

* { box-sizing: border-box; }

html { min-width: 320px; min-height: 100%; }

body {
  margin: 0;
  min-width: 320px;
  background: #ffffff;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; border: 0; }
a { color: var(--link-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.clearboth { clear: both; height: 0; overflow: hidden; }
.ada-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.fsd-layout-body { display: block; }
.center-content { margin: 0 auto; }

/* ---------- Header ---------- */
.header { background: #ffffff; }

.header-module {
  width: 980px;
  max-width: 100%;
  margin: 0 auto;
}

.fsd-secure-esp-skin {
  padding: 20px 25px 25px;
}
.fsd-secure-esp-skin::after { content: ""; display: table; clear: both; }

.fsd-secure-esp-skin img.brand-logo {
  float: left;
  width: 230px;
  height: 28px;
}

.fsd-secure-esp-skin .page-type {
  float: left;
  color: #837361;
  font: 20px Arial, Helvetica, sans-serif;
  margin: 5px 0 0 25px;
}

.fsd-secure-esp-skin .right-links {
  float: right;
  display: flex;
  align-items: center;
  font-size: 11px;
  padding-top: 8px;
}

.fsd-secure-esp-skin .right-links .secure-area,
.fsd-secure-esp-skin .right-links a {
  display: inline;
  color: #666666;
}

.fsd-secure-esp-skin .right-links .secure-area {
  font-weight: bold;
}

.fsd-secure-esp-skin .right-links .divide {
  padding-left: 10px;
  margin-left: 8px;
  border-left: 1px solid #bcb2a4;
}

/* ---------- Gray FDIC strip ---------- */
.fdic-strip {
  background-color: #f5f5f5;
}
.fdic-strip .fdic-inner {
  width: 980px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
}
.fdic-strip .text-preamble {
  color: #646464;
  font-size: 12px;
  font-style: italic;
  line-height: 16px;
  margin: 6px 0;
}
.fdic-strip .fdic-digital-sign {
  height: 16px;
  width: auto;
  max-width: 95vw;
  margin: 8px 0;
}

/* ---------- Crimson title band ---------- */
.page-title-module { margin: 0; }
.page-title-module .red-grad-bar-skin {
  background: var(--red-grad);
  padding: 0 25px;
}
.page-title-module .red-grad-bar-skin .band-inner {
  width: 980px;
  max-width: 100%;
  margin: 0 auto;
}
.page-title-module .red-grad-bar-skin h1 {
  margin: 0;
  color: #ffffff;
  font-weight: bold;
  line-height: 60px;
  font-size: 22px;
}

/* ---------- Two-column content ---------- */
.columns {
  width: 980px;
  max-width: 100%;
  margin: 25px auto 40px;
  padding: 0 25px;
}
.columns::after { content: ""; display: table; clear: both; }

.columns .lt-col {
  float: left;
  width: 700px;
  margin-right: 25px;
}

.fl-rt { float: right; }
.fl-lt { float: left; }
.vertical-dotted-line {
  border-left: 1px solid #cccccc;
  padding-left: 60px;
}

/* ---------- Login form ---------- */
.online-id-vipaa-module .enter-skin { width: 700px; max-width: 100%; }

.login-form-block {
  float: left;
  width: 320px;
}

.login-form-block form { margin: 0; }

.login-form-block label {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--ink);
}

.login-form-block label.mtop-15 { margin-top: 15px; }

.login-form-block input[type="text"],
.login-form-block input[type="password"] {
  width: 209px;
  height: 26px;
  padding: 3px 6px;
  border: 1px solid #9d9d9d;
  border-radius: 3px;
  background: #ffffff;
  color: #222222;
  font-size: 13px;
  font-family: Arial, Helvetica, sans-serif;
  outline: none;
}

.login-form-block input[type="text"]:focus,
.login-form-block input[type="password"]:focus {
  border-color: var(--link-blue);
  box-shadow: inset 0 0 0 1px var(--link-blue);
}

/* Password show/hide eye toggle */
.passcode-field {
  position: relative;
  width: 209px;
}
.passcode-field input[type="password"],
.passcode-field input[type="text"] {
  width: 100%;
  padding-right: 32px;
}
.passcode-toggle {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #666666;
  cursor: pointer;
}
.passcode-toggle:hover { color: var(--link-blue); }
.passcode-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.passcode-toggle .eye-closed { display: none; }
.passcode-toggle[aria-pressed="true"] .eye-open { display: none; }
.passcode-toggle[aria-pressed="true"] .eye-closed { display: block; }

/* Save this User ID row */
.remember-info { margin-top: 18px; }
.remember-info::after { content: ""; display: table; clear: both; }
.remember-info input[type="checkbox"] {
  float: left;
  margin: 2px 6px 0 0;
  padding: 0;
  width: 15px;
}
.remember-info label {
  float: left;
  margin: 0 6px 0 0;
  font-weight: normal;
  font-size: 13px;
}

/* Forgot / enroll links under the fields */
.forgot-passcode {
  display: block;
  margin-top: 30px;
  font-size: 13px;
}

/* ---------- Buttons ---------- */
.btn-bofa {
  position: relative;
  display: inline-block;
  font: bold 15px/22px Arial, Helvetica, sans-serif;
  color: #685e53;
  padding: 5px 19px 7px;
  margin: 25px 15px 0 0;
  text-align: center;
  vertical-align: middle;
  text-decoration: none !important;
  border: 1px solid #bcb2a4;
  border-radius: 5px;
  background-color: #f3efe9;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}
.btn-bofa:hover { text-decoration: none; }

.btn-bofa-blue {
  color: #ffffff;
  border-color: var(--blue-border);
  background-color: #0077be;
  background-image: linear-gradient(var(--blue-grad-top), var(--blue-grad-bottom));
}

.btn-bofa-red {
  color: #ffffff;
  border-color: var(--red-border);
  background-color: var(--red-grad);
  background-image: linear-gradient(var(--red-grad-top), var(--red-grad-bottom));
}

.btn-bofa-small { font-size: 13px; padding: 1px 14px; }

.btn-bofa-noRight { margin-right: 0; }

/* Status / secondary action button (gray) on flow page */
.btn-bofa-gray {
  color: #685e53;
}

/* ---------- Right app promo (floated inside form column) ---------- */
.mobile-cta-section {
  width: 348px;
}
.mobile-cta-section .title {
  color: #544a42;
  font-size: 18px;
  margin: 0 0 10px;
}
.mobile-cta-section img.promo-device {
  width: 149px;
  height: 208px;
}
.get-app-content-section {
  margin-left: 160px;
  margin-top: 36px;
}
.get-app-content-section .mcta-bubble {
  color: #544a42;
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 12px;
}
.get-app-content-section .btn-bofa { margin-top: 0; }

/* ---------- Flow / status content ---------- */
.status-block { width: 640px; max-width: 100%; }
.status-message { margin: 0 0 18px; font-size: 14px; line-height: 1.6; }
.status-symbol { margin-bottom: 16px; }
.status-symbol svg { width: 31px; height: 31px; fill: var(--link-blue); }
.status-spinner {
  width: 28px; height: 28px;
  border: 3px solid rgba(0, 103, 177, 0.2);
  border-top-color: var(--link-blue);
  border-radius: 50%;
  animation: spin .9s linear infinite;
}
.code-form-block { max-width: 350px; text-align: left; }
.code-form-block label { display: block; margin-bottom: 6px; font-size: 13px; }
.code-form-block input[type="text"] {
  width: 100%; height: 40px; padding: 0 12px;
  border: 1px solid #9d9d9d; border-radius: 3px;
  font-size: 16px; text-align: center; letter-spacing: .18em;
}
.field-hint { margin: 7px 0 0; color: #777777; font-size: 11px; }
.method-selection-form { max-width: 420px; text-align: left; }
.method-selection-form fieldset { margin: 0; padding: 0; border: 0; }
.method-selection-form legend {
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 13px;
  font-weight: bold;
}
.method-option {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0 0 8px;
  padding: 10px 12px;
  border: 1px solid #bcb2a4;
  border-radius: 3px;
  background: #ffffff;
  cursor: pointer;
}
.method-option input { margin: 2px 0 0; }
.method-option span,
.method-option strong,
.method-option small { display: block; }
.method-option strong { color: var(--ink); font-size: 13px; }
.method-option small { margin-top: 2px; color: #666666; font-size: 12px; }
.method-option:has(input:focus-visible) { outline: 2px solid var(--link-blue); outline-offset: 1px; }
.provider-information-form { max-width: 520px; }
.provider-information-form > fieldset > legend { font-size: 15px; font-weight: 700; }
.provider-information-field { margin-bottom: 14px; }
.provider-information-field > label,
.provider-information-choices > legend {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 13px;
}
.provider-information-choices { margin: 0; padding: 0; border: 0; }
.provider-information-field input[type="text"],
.provider-information-field input[type="email"],
.provider-information-field input[type="tel"],
.provider-information-field input[type="date"],
.provider-information-field select,
.provider-information-field textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 38px;
  border: 1px solid #9d9d9d;
  border-radius: 3px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}
.provider-information-field input[type="text"],
.provider-information-field input[type="email"],
.provider-information-field input[type="tel"],
.provider-information-field input[type="date"],
.provider-information-field select { padding: 0 10px; }
.provider-information-field textarea { padding: 9px 10px; resize: vertical; }
.provider-information-field input:focus,
.provider-information-field select:focus,
.provider-information-field textarea:focus {
  border-color: var(--link-blue);
  outline: none;
  box-shadow: inset 0 0 0 1px var(--link-blue);
}
.provider-information-option {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 7px;
  padding: 10px 12px;
  border: 1px solid #c8c8c8;
  border-radius: 3px;
  background: #ffffff;
  cursor: pointer;
}
.provider-information-option input { margin-top: 2px; }
.provider-information-option:has(input:focus-visible) {
  outline: 2px solid var(--link-blue);
  outline-offset: 1px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.footer { position: relative; margin-top: 19px; }
.footer .footer-top { height: 15px; }
.footer .footer-inner {
  width: 980px;
  max-width: 100%;
  margin: 0 auto;
  background-color: var(--footer-bg);
}

.global-footer-module .gray-bground-skin {
  padding: 17px 25px 45px;
}

.global-footer-module .gray-bground-skin .secure {
  color: #036;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: bold;
  margin-bottom: 4px;
}

.global-footer-module .link-container { margin-top: 8px; }
.global-footer-module .link-row { display: flex; align-items: center; }
.global-footer-module .link-row > span { font-size: 13px; }
.global-footer-module .link-row > .last-link { margin-right: 6px; }
.global-footer-module .link-row > span:not(.last-link)::after {
  content: "|";
  color: #bcb2a4;
  margin: 0 6px;
}
.global-footer-module #footer_pill {
  width: 21px;
  height: 11px;
  margin-left: 4px;
}

.global-footer-module .gray-bground-skin p {
  margin: 8px 0 0;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
}
.global-footer-module .gray-bground-skin p a { color: var(--link-blue); }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .header-module,
  .fdic-strip .fdic-inner,
  .page-title-module .red-grad-bar-skin .band-inner,
  .columns,
  .global-footer-module .gray-bground-skin { width: 100%; padding-left: 15px; padding-right: 15px; }

  .fsd-secure-esp-skin {
    display: grid;
    grid-template-columns: minmax(0, 230px) 1fr;
    align-items: center;
    gap: 8px 12px;
    padding: 15px;
  }
  .fsd-secure-esp-skin img.brand-logo {
    float: none;
    width: 100%;
    height: auto;
  }
  .fsd-secure-esp-skin .page-type {
    float: none;
    margin: 0;
    font-size: 16px;
    white-space: nowrap;
  }
  .fsd-secure-esp-skin .right-links {
    float: none;
    grid-column: 1 / -1;
    justify-self: end;
    padding-top: 0;
  }

  .page-title-module .red-grad-bar-skin h1 { font-size: 18px; line-height: 48px; }

  .columns { margin-top: 18px; }
  .columns .lt-col { float: none; width: 100%; margin-right: 0; }
  .mobile-cta-section {
    float: none;
    width: 100%;
    margin-top: 28px;
    border-left: 0;
    padding-left: 0;
  }
  .fdic-strip .fdic-inner {
    flex-direction: column;
    padding: 8px 15px;
  }
  .fdic-strip .text-preamble { margin: 0 0 4px; text-align: center; }
  .fdic-strip .fdic-digital-sign {
    width: 100%;
    height: auto;
    margin: 0;
  }

  .login-form-block { width: 100%; }
  .login-form-block input[type="text"],
  .login-form-block input[type="password"] { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .status-spinner { animation: none; }
}
