/* Logo Font */
@font-face {
  font-family: 'LogoFont';
  src: url('fonts/Garde.woff2') format('woff2'),
       url('fonts/Garde.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

.logo-font {
  font-family: 'LogoFont', var(--bs-body-font-family);
}

.logo-color {
  color: #ffd460;
}

/* Honeypot: off-screen for bots that fill every input; not focusable. */
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* -------------------------------------------------------------------------
   Toast alerts (alert_notify / alert_error)
   ------------------------------------------------------------------------- */

.cry-toast-host {
  --cry-toast-accent: #ffd460;
  --cry-toast-error: #f07178;
  position: fixed;
  top: 4.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  width: max-content;
  max-width: min(92vw, 22rem);
  pointer-events: none;
}

.cry-toast {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: max-content;
  max-width: 100%;
  padding: 0.7rem 1rem 0.7rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(22, 25, 29, 0.92);
  color: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 12px 32px -12px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(0, 0, 0, 0.25) inset;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(-0.55rem) scale(0.96);
  transition:
    opacity 0.28s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.cry-toast-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.cry-toast-leaving {
  opacity: 0;
  transform: translateY(-0.35rem) scale(0.97);
  transition:
    opacity 0.24s ease,
    transform 0.24s ease;
}

.cry-toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  font-size: 1.05rem;
  line-height: 1;
}

.cry-toast-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cry-toast-notify {
  border-color: rgba(255, 212, 96, 0.28);
  box-shadow:
    0 12px 32px -12px rgba(0, 0, 0, 0.75),
    0 0 24px -10px rgba(255, 212, 96, 0.35),
    0 0 0 1px rgba(0, 0, 0, 0.25) inset;
}

.cry-toast-notify .cry-toast-icon {
  color: var(--cry-toast-accent);
  filter: drop-shadow(0 0 6px rgba(255, 212, 96, 0.45));
}

.cry-toast-error {
  border-color: rgba(240, 113, 120, 0.35);
  box-shadow:
    0 12px 32px -12px rgba(0, 0, 0, 0.75),
    0 0 24px -10px rgba(240, 113, 120, 0.35),
    0 0 0 1px rgba(0, 0, 0, 0.25) inset;
}

.cry-toast-error .cry-toast-icon {
  color: var(--cry-toast-error);
  filter: drop-shadow(0 0 6px rgba(240, 113, 120, 0.4));
}

@media (max-width: 399.98px) {
  .cry-toast-host {
    top: 3.85rem;
    max-width: min(94vw, 20rem);
  }

  .cry-toast {
    padding: 0.62rem 0.9rem 0.62rem 0.75rem;
    font-size: 0.85rem;
    gap: 0.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cry-toast,
  .cry-toast-leaving {
    transition: opacity 0.15s ease;
    transform: none;
  }

  .cry-toast-visible {
    transform: none;
  }
}

/* -------------------------------------------------------------------------
   Inline / modal error panels (set_error / modal_set_error)
   ------------------------------------------------------------------------- */

.cry-error {
  --cry-error-color: #f07178;
  --cry-error-soft: #f1aeb5;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(240, 113, 120, 0.32);
  background:
    linear-gradient(165deg, rgba(240, 113, 120, 0.12), transparent 55%),
    rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 10px 28px -22px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(0, 0, 0, 0.2) inset;
}

.cry-error-compact {
  padding: 0.7rem 0.85rem;
  gap: 0.65rem;
  border-radius: 0.65rem;
}

.cry-error-modal {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.9rem;
  padding: 1.4rem 1.1rem 1.25rem;
  border-radius: 0.85rem;
}

.cry-error-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: rgba(240, 113, 120, 0.12);
  border: 1px solid rgba(240, 113, 120, 0.35);
  color: var(--cry-error-color);
  font-size: 0.92rem;
  line-height: 1;
  box-shadow: 0 0 12px -4px rgba(240, 113, 120, 0.45);
}

.cry-error-compact .cry-error-icon {
  width: 1.65rem;
  height: 1.65rem;
  font-size: 0.85rem;
  margin-top: 0.05rem;
}

.cry-error-modal .cry-error-icon {
  width: 2.55rem;
  height: 2.55rem;
  font-size: 1.2rem;
  margin-top: 0;
}

.cry-error-body {
  min-width: 0;
  flex: 1 1 auto;
}

.cry-error-title {
  margin: 0 0 0.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--cry-error-soft);
  line-height: 1.3;
}

.cry-error-msg {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
  overflow-wrap: anywhere;
}

.cry-error-compact .cry-error-title {
  font-size: 0.84rem;
}

.cry-error-compact .cry-error-msg {
  font-size: 0.84rem;
}

.cry-error-modal .cry-error-title {
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

.cry-error-modal .cry-error-msg {
  font-size: 0.9rem;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}
