/* The header's "Log in" (owner 2026-10-22): the site's mint button, a list of the portals underneath. The phone
   menu's portal buttons (work item 17622) share its colours. */
.bl-login,
.bl-login-phone {
  --bl-login-ink: #020026;
  --bl-login-mint: #00ddb3;
  --bl-login-mint-dark: #00bf9b;
  --bl-login-soft: #d1f4ee;
  --bl-login-line: #dde3ec;
  --bl-login-muted: #667085;
}

.bl-login {
  position: relative;
  display: flex;
  justify-content: flex-end;
  font-family: inherit;
}

/* Beats the theme's button rules (pink hover, no border) with the site's own colours. */
.bl-login .bl-login-button,
.bl-login .bl-login-button:hover,
.bl-login .bl-login-button:focus {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 10px;
  background-color: var(--bl-login-mint);
  color: var(--bl-login-ink);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.15s, box-shadow 0.15s;
}

.bl-login .bl-login-button:hover,
.bl-login.bl-login-open .bl-login-button {
  background-color: var(--bl-login-mint-dark);
  box-shadow: 0 6px 16px rgba(0, 191, 155, 0.3);
}

.bl-login .bl-login-button:focus-visible {
  outline: 3px solid rgba(40, 179, 214, 0.45);
  outline-offset: 2px;
}

.bl-login .bl-icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bl-login .bl-login-chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.15s;
}

.bl-login.bl-login-open .bl-login-chevron {
  transform: rotate(180deg);
}

.bl-login .bl-login-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1000;
  width: 320px;
  max-width: calc(100vw - 32px);
  padding: 8px;
  border: 1px solid var(--bl-login-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(2, 0, 38, 0.14);
  animation: bl-login-in 0.14s ease-out;
}

.bl-login .bl-login-menu[hidden] {
  display: none;
}

@keyframes bl-login-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.bl-login .bl-login-menu-title {
  margin: 4px 10px 6px;
  color: var(--bl-login-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bl-login .bl-login-item,
.bl-login .bl-login-item:hover,
.bl-login .bl-login-item:focus {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  color: var(--bl-login-ink);
  text-decoration: none;
  transition: background-color 0.12s;
}

.bl-login .bl-login-item:hover,
.bl-login .bl-login-item:focus-visible {
  background-color: #f2fbf9;
  outline: none;
}

.bl-login .bl-login-item-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bl-login-soft);
  color: #00876f;
}

.bl-login .bl-login-item-text {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.bl-login .bl-login-item-name {
  font-size: 0.9375rem;
  font-weight: 600;
}

.bl-login .bl-login-item-hint {
  color: var(--bl-login-muted);
  font-size: 0.8125rem;
}

.bl-login-note {
  margin: 0;
  color: #b42318;
  font-size: 0.8125rem;
}

/* Tablets (the header's smaller layout): a lighter button. */
@media (min-width: 768px) and (max-width: 1024px) {
  .bl-login .bl-login-button,
  .bl-login .bl-login-button:hover,
  .bl-login .bl-login-button:focus {
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 9px;
    font-size: 0.9375rem;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .bl-login .bl-icon {
    width: 18px;
    height: 18px;
  }

  .bl-login .bl-login-chevron {
    width: 14px;
    height: 14px;
  }
}

/* Phones: logo, then "Log in", then the menu button (the header's columns carry these classes); a compact
   button, and the list drops down full width under the header so it never leaves the screen. */
@media (max-width: 767px) {
  .elementor .bl-header-login {
    order: 2;
  }

  .elementor .bl-header-menu {
    order: 3;
  }

  .bl-login .bl-login-button,
  .bl-login .bl-login-button:hover,
  .bl-login .bl-login-button:focus {
    gap: 6px;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 0.8125rem;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .bl-login .bl-icon {
    width: 16px;
    height: 16px;
  }

  .bl-login .bl-login-chevron {
    width: 12px;
    height: 12px;
  }

  .bl-login .bl-login-menu {
    position: fixed;
    top: var(--bl-login-top, 72px);
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
  }
}

/* Work item 17622: the portals in the phone menu (the header's Log in column is hidden on phones) - filled buttons in
   the site's colour, like "Book an Appointment". Not shown where the header's own Log in is. */
.bl-login-phone {
  display: none;
}

@media (max-width: 767px) {
  .elementskit-navbar-nav .bl-login-phone {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
    padding: 16px 35px 0;
    border-top: 1px solid var(--bl-login-line);
  }

  .bl-login-phone .bl-login-phone-title {
    margin: 0;
    color: var(--bl-login-muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .elementskit-navbar-nav .bl-login-phone .bl-login-phone-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 20px;
    background: var(--bl-login-mint);
    color: var(--bl-login-ink);
    font-weight: 700;
    text-decoration: none;
  }

  .elementskit-navbar-nav .bl-login-phone .bl-login-phone-link:hover,
  .elementskit-navbar-nav .bl-login-phone .bl-login-phone-link:focus-visible {
    background: var(--bl-login-mint-dark);
    color: var(--bl-login-ink);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bl-login .bl-login-menu,
  .bl-login .bl-login-chevron {
    animation: none;
    transition: none;
  }
}
