/* Shared RBQ glass toast — extracted for login/auth pages */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

.fynix-toast-host {
  --toast-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --toast-lime: #c8f897;
  --toast-lime-hover: #a9e882;
  --toast-ink: #102018;
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 12050;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
  pointer-events: none;
  max-width: min(22.5rem, calc(100vw - 1.5rem));
  font-family: var(--toast-font);
  -webkit-font-smoothing: antialiased;
}

.fynix-toast-host,
.fynix-toast-host *,
.fynix-toast-host *::before,
.fynix-toast-host *::after {
  font-family: var(--toast-font) !important;
  box-sizing: border-box;
}

.fynix-toast {
  position: relative;
  width: min(22.5rem, calc(100vw - 1.5rem));
  padding: 1rem 1.15rem 0.95rem;
  border-radius: 22px;
  color: #fff;
  background: rgba(58, 58, 60, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.28),
    0 2px 8px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  pointer-events: auto;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.fynix-toast.is-show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.fynix-toast-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 1.45rem;
  height: 1.45rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.fynix-toast-close:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
}

.fynix-toast-close svg {
  width: 0.85rem;
  height: 0.85rem;
}

.fynix-toast-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  padding-right: 0.85rem;
}

.fynix-toast-mark {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background:
    radial-gradient(circle at 30% 28%, rgba(200, 248, 151, 0.35), transparent 45%),
    linear-gradient(145deg, #1a4538, #12352c 60%, #0d2820);
  color: #c8f897;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.fynix-toast-mark.is-logo {
  background: linear-gradient(145deg, #1a4538, #12352c 60%, #0d2820);
  padding: 0.35rem;
}

.fynix-toast-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.fynix-toast-mark.is-err {
  background: linear-gradient(145deg, #7f1d1d, #9a3412);
  color: #ffedd5;
}

.fynix-toast-mark.is-warn {
  background: linear-gradient(145deg, #78350f, #b45309);
  color: #fef3c7;
}

.fynix-toast-mark svg {
  width: 1.15rem;
  height: 1.15rem;
}

.fynix-toast-copy {
  min-width: 0;
}

.fynix-toast-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.28rem;
  padding-right: 0.5rem;
}

.fynix-toast-title {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.25;
}

.fynix-toast-sep {
  width: 1px;
  height: 0.85rem;
  background: rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
}

.fynix-toast-time {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: -0.01em;
}

.fynix-toast-body {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: -0.01em;
}

.fynix-toast-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

/* Match .fynix-btn-green / ghost patterns used across the portal */
.fynix-toast-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1.05rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.fynix-toast-btn.is-secondary {
  color: rgba(255, 255, 255, 0.88);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.fynix-toast-btn.is-secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.42);
}

.fynix-toast-btn.is-primary {
  color: var(--toast-ink);
  background: var(--toast-lime);
  border: 0;
}

.fynix-toast-btn.is-primary:hover {
  background: var(--toast-lime-hover);
  color: var(--toast-ink);
}

@media (max-width: 560px) {
  .fynix-toast-host {
    right: 0.75rem;
    left: 0.75rem;
    bottom: 0.85rem;
    max-width: none;
    align-items: stretch;
  }

  .fynix-toast {
    width: 100%;
  }
}
