/* Distinct portal entry points in the marketing-site header. */
.portal-login {
  display: inline-flex !important;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.portal-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}

.portal-login--radiologist {
  color: #3730a3 !important;
  background: #eef2ff;
  border-color: #c7d2fe;
}

.portal-login--radiologist:hover {
  color: #312e81 !important;
  background: #e0e7ff;
}

.portal-login--enterprise {
  color: #0f766e !important;
  background: #ecfdf5;
  border-color: #99f6e4;
}

.portal-login--enterprise:hover {
  color: #115e59 !important;
  background: #ccfbf1;
}

.portal-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #0f2748;
  cursor: pointer;
}

.portal-menu-toggle__icon,
.portal-menu-toggle__icon::before,
.portal-menu-toggle__icon::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 150ms ease, opacity 150ms ease;
  content: '';
}

.portal-menu-toggle__icon { position: relative; }
.portal-menu-toggle__icon::before { position: absolute; top: -6px; }
.portal-menu-toggle__icon::after { position: absolute; top: 6px; }

@media (max-width: 760px) {
  .nav { position: relative; }
  .nav > .btn-primary { display: none; }
  .portal-menu-toggle { display: inline-flex; flex-shrink: 0; }
  .nav-links { display: none !important; }
  .nav-links.portal-menu-open {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    z-index: 60;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 16px 16px;
    border: 1px solid #e2e8f0;
    border-top: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 30px rgba(15, 39, 72, 0.14);
  }
  .nav-links.portal-menu-open > a {
    display: block;
    padding: 10px 8px;
  }
  .nav-links.portal-menu-open > .portal-login {
    display: inline-flex !important;
    justify-content: center;
    margin-top: 4px;
    padding: 11px;
  }
  .portal-menu-toggle[aria-expanded="true"] .portal-menu-toggle__icon { background: transparent; }
  .portal-menu-toggle[aria-expanded="true"] .portal-menu-toggle__icon::before { transform: translateY(6px) rotate(45deg); }
  .portal-menu-toggle[aria-expanded="true"] .portal-menu-toggle__icon::after { transform: translateY(-6px) rotate(-45deg); }
}
