/* Restrained portal chrome, aligned with the approved Bay sign-in palette. */
.bay-portal-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #103536;
  color: #f2f3ed;
  box-shadow: 0 1px 0 rgba(219, 232, 221, .13);
}

.bay-portal-bar,
.bay-portal-bar * {
  box-sizing: border-box;
}

.bay-portal-bar {
  position: relative;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 24px;
  overflow: hidden;
  isolation: isolate;
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  max-width: 1152px;
  margin-inline: auto;
}

.bay-portal-bar::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(ellipse at 92% 110%, rgba(103, 153, 139, .17), transparent 43%),
    linear-gradient(115deg, rgba(255, 255, 255, .025), transparent 55%);
  content: "";
  pointer-events: none;
}

.bay-portal-bar__identity {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: clamp(13px, 2vw, 24px);
}

.bay-portal-bar__brand {
  display: inline-flex;
  flex: 0 0 auto;
  min-width: 56px;
  min-height: 42px;
  align-items: center;
  justify-content: flex-start;
  border-radius: 3px;
  text-decoration: none;
}

.bay-portal-bar__proactiviti-logo {
  display: block;
  width: 56px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.bay-portal-bar__divider {
  width: 1px;
  height: 31px;
  flex: 0 0 auto;
  background: rgba(226, 237, 226, .28);
}

.bay-portal-bar__client {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.bay-portal-bar__client-mark {
  display: contents;
}

.bay-portal-bar__client-mark img {
  display: block;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  object-fit: contain;
}

.bay-portal-bar__client-name {
  position: relative;
  z-index: 1;
  overflow: hidden;
  color: #f2f3ed;
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.bay-portal-bar__watermark {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  color: rgba(225, 236, 225, .055);
  font-family: "Manrope", sans-serif;
  font-size: clamp(34px, 5vw, 59px);
  font-weight: 700;
  letter-spacing: -.075em;
  line-height: 1;
  pointer-events: none;
  transform: translate(-50%, -53%);
  user-select: none;
  white-space: nowrap;
}

.bay-portal-bar__logout {
  position: relative;
  z-index: 2;
  display: inline-flex;
  min-width: 82px;
  min-height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid rgba(222, 235, 225, .32);
  border-radius: 4px;
  background: rgba(16, 53, 54, .35);
  color: #e8eee7;
  cursor: pointer;
  font: 600 12px "DM Sans", sans-serif;
  transition: background-color .16s ease, border-color .16s ease;
}

.bay-portal-bar__logout:hover {
  border-color: rgba(222, 235, 225, .58);
  background: rgba(255, 255, 255, .08);
}

.bay-portal-bar__logout:disabled {
  opacity: .7;
  cursor: wait;
}

.bay-portal-logout-error {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px 12px;
  color: #f2c5b7;
  font-size: 13px;
}

.bay-portal-bar__logout svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.bay-portal-bar__logout:focus-visible,
.bay-portal-footer__privacy:focus-visible {
  outline: 3px solid #d88b72;
  outline-offset: 4px;
}

.bay-portal-footer,
.bay-portal-footer * {
  box-sizing: border-box;
}

.bay-portal-footer {
  width: 100%;
  margin-top: 40px;
  padding: 19px clamp(18px, 4vw, 54px) 17px;
  border-top: 1px solid #dfe5df;
  background: #f1f3ee;
  color: #6c7d7d;
  font-family: "DM Sans", sans-serif;
}

.bay-portal-footer__disclosure {
  max-width: 940px;
  margin: 0 auto 13px;
  color: #687a75;
  font-size: 12px;
  line-height: 1.65;
}

.bay-portal-footer__bottom {
  display: flex;
  max-width: 1180px;
  min-height: 28px;
  align-items: center;
  gap: 18px;
  margin: 0 auto;
  border-top: 1px solid #e1e6e0;
  padding-top: 11px;
  font-size: 10px;
}

.bay-portal-footer__copyright {
  flex: 0 0 auto;
}

.bay-portal-footer__mark {
  margin: 0 auto;
  color: #9aa7a0;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .14em;
  text-align: center;
}

.bay-portal-footer__privacy {
  display: inline-flex;
  min-height: 32px;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  color: #315b53;
  font-size: 12px;
  font-weight: 600;
  text-decoration-color: rgba(49, 91, 83, .4);
  text-underline-offset: 3px;
}

.bay-portal-footer__privacy:hover {
  color: #163f3d;
  text-decoration-color: currentColor;
}

@media (max-width: 600px) {
  .bay-portal-bar {
    min-height: 68px;
    gap: 8px;
    padding: 9px 14px;
  }

  .bay-portal-bar__identity {
    gap: 10px;
  }

  .bay-portal-bar__brand {
    min-width: 0;
    min-height: 40px;
  }

  .bay-portal-bar__proactiviti-logo {
    width: 48px;
  }

  .bay-portal-bar__divider {
    height: 27px;
  }

  .bay-portal-bar__client {
    gap: 7px;
  }

  .bay-portal-bar__client-mark img {
    width: 32px;
    height: 32px;
  }

  .bay-portal-bar__client-name {
    font-size: 12px;
  }

  .bay-portal-bar__logout {
    min-width: 82px;
    min-height: 42px;
    gap: 6px;
    padding: 0 10px;
  }

  .bay-portal-bar__watermark {
    left: 54%;
    font-size: 35px;
  }

  .bay-portal-footer {
    padding: 16px 17px 13px;
  }

  .bay-portal-footer__bottom {
    flex-wrap: wrap;
    gap: 8px 14px;
  }

  .bay-portal-footer__mark {
    display: none;
  }

  .bay-portal-footer__privacy {
    margin-left: auto;
  }
}

.bay-sign-in-privacy-link {
  color: #315b53;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bay-home-privacy-footer {
  position: relative;
  z-index: 1;
  padding: 18px 24px;
  border-top: 1px solid rgba(242, 243, 237, .15);
  font-size: 12px;
  text-align: center;
}

.bay-home-privacy-link {
  color: #f2f3ed;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bay-home-privacy-link:focus-visible {
  outline: 3px solid #d88b72;
  outline-offset: 4px;
}

.bay-sign-in-privacy-link:focus-visible {
  outline: 3px solid #d88b72;
  outline-offset: 4px;
}

.bay-footer {
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .bay-mobile-brand {
    position: sticky;
    top: 0;
    z-index: 40;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bay-portal-bar__logout {
    transition: none;
  }
}
