@keyframes toast-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(12px); }
}

#authToast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 26px 18px 20px;
  border-radius: 0;
  border: 1px solid #67acb1;
  border-left: 3px solid #baaa9e;
  background: #3d7d82;
  color: #ffffff;
  font-family: "Figtree", "Manrope", "Helvetica Neue", Arial, sans-serif;
  box-shadow: 0 18px 40px rgba(31, 69, 71, 0.28), 0 2px 6px rgba(31, 69, 71, 0.18);
  max-width: min(92vw, 520px);
  width: max-content;
  pointer-events: none;
  opacity: 0;
}

#authToast.toast-visible {
  animation: toast-in 0.45s cubic-bezier(0.2, 0.6, 0.2, 1) both;
}

#authToast.toast-hiding {
  animation: toast-out 0.45s cubic-bezier(0.2, 0.6, 0.2, 1) both;
}

.auth-toast-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #b9e6e0;
  color: #1f5f63;
}

.auth-toast-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.auth-toast-title {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  color: #ffffff;
}

.auth-toast-msg {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  color: #ffffff;
}

@media (max-width: 540px) {
  #authToast {
    bottom: 16px;
    right: 16px;
    padding: 14px 18px 14px 14px;
    gap: 12px;
  }
  .auth-toast-mark { width: 28px; height: 28px; }
  .auth-toast-title { font-size: 14px; }
  .auth-toast-msg { font-size: 13px; }
}
