html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.password-visibility-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-toasts {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: min(22rem, calc(100vw - 2rem));
  pointer-events: none;
}

.app-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0.7rem 0.85rem 1rem;
  color: #fff8f6;
  background: #7a1f2e;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  animation: app-toast-in 0.2s ease;
}

.app-toast-warning {
  background: #8a5a12;
}

.app-toast-message {
  flex: 1;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

.app-toast-close {
  flex: 0 0 1.7rem;
  width: 1.7rem;
  height: 1.7rem;
  padding: 0;
  color: inherit;
  font-size: 1.15rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.16);
  border: 0;
  border-radius: 999px;
  opacity: 0.95;
}

.app-toast-close:hover,
.app-toast-close:focus-visible {
  opacity: 1;
}

.app-toast.is-leaving {
  opacity: 0;
  transform: translateX(0.75rem);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.app-inline-form-error,
.field-validation-error {
  display: block;
  margin-top: 0.35rem;
}

@keyframes app-toast-in {
  from {
    opacity: 0;
    transform: translateX(0.75rem);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.brand-logo-header {
  display: block;
  height: 2rem;
  width: auto;
  max-width: min(11rem, 46vw);
  object-fit: contain;
  object-position: left center;
}

.brand-logo-primary {
  display: block;
  width: min(100%, 22rem);
  height: auto;
  max-height: 7.5rem;
  object-fit: contain;
  object-position: left center;
}

.navbar-brand {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

@media (prefers-reduced-motion: reduce) {
  .app-toast,
  .app-toast.is-leaving {
    animation: none;
    transition: none;
  }
}