.error-box {
  background: #ffecec;
  color: #b00020;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 6px;
  border: 1px solid #f5c2c7;
  font-size: 0.9rem;
}
.error-box a.forgot-link {
  color: #b00020;
  text-decoration: underline;
  margin-left: .5rem;
}
.error-message[role="alert"] {
  display: none;
}
.error-text {
  color: red;
  font-size: 0.9rem;
  margin-top: 4px;
}
.toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 375px;
  background: #fff;
  padding: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 12px;
  border-left: 3px solid #000;
  overflow: hidden;
  opacity: 0;
  transform: translateY(calc(100% + 25px));
  transition: all 0.5s cubic-bezier(0.68,-0.55,0.265,1.35);
  z-index: 9999;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.toast.active {
  opacity: 1;
  transform: translateY(0);
}

.toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  flex: 0 0 auto;
  color: #fff;
  background: #d32f2f;
}

.toast[data-toast-type="success"] .toast-icon {
  background: #2e7d32;
}

.toast[data-toast-type="info"] .toast-icon {
  background: #1976d2;
}

.toast-text {
  flex: 1 1 auto;
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  padding: 0 6px;
}

.toast-close {
  appearance: none;
  background: transparent;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 0;
  transition: color 350ms ease;
}

.toast-close:hover,
.toast-close:focus-visible {
  color: #333;
  outline: none;
}

@media (max-width: 640px) {
  .toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
    padding: 16px 18px;
  }
}

