.flash-message {
  display: flex;
  justify-content: center;
  position: absolute;
  top: 1.7rem;
  width: 100%;
}

@keyframes appear-then-fade {
  0%,100% { opacity: 0; }
  5%,60% { opacity: 1; }
}

.flash-message__content {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: hsl(18, 49%, 18%);
  color: hsl(18, 34%, 91%);
  border-radius: 1rem;
  padding: 0.35rem 1.4rem;
  font-weight: 500;
  box-shadow: 0 0.1rem 0.55rem hsl(0, 0%, 65%);
  animation: appear-then-fade 4s 300ms both;
  z-index: 4;
}

body:has(.form-sign-in) {
  .flash-message__content {
    animation: none;
  }
}
