/* 2FA Banner styled like existing flash messages (info tone) */
.twofa-banner {
  position: sticky;
  top: 0;
  z-index: var(--z-overlay, 1040); /* like flash */
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  background-color: #d1ecf1; /* info bg */
  border: 1px solid #b8daff; /* info border */
  color: #0c5460; /* info text */
  padding: 10px 1rem 10px 1rem;
  /* full-bleed across viewport even inside padded containers */
  width: 100vw;
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
}
.twofa-banner .btn.btn-primary {
  margin-left: auto; /* push CTA to right */
}
.twofa-banner .banner-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  opacity: .7;
  margin-left: 8px; /* next to CTA */
}
.twofa-banner .banner-close:hover {
  opacity: 1;
  background-color: rgba(0,0,0,.08);
}

@media (max-width: 640px) {
  .twofa-banner { padding: 8px 12px; gap: 8px; }
  .twofa-banner .banner-text { font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .twofa-banner .btn.btn-primary { padding: 0.4rem 0.6rem; font-size: 0.875rem; }
  .twofa-banner .banner-close { width: 20px; height: 20px; font-size: 1rem; }
} 