html, body {
  margin: 0;
  padding: 0;
  font-family: "Sora", "Segoe UI", Arial, Helvetica, sans-serif;
  height: 100%;
  background-color: #e2e8f0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity .4s cubic-bezier(0.2, 0.8, 0.2, 1);
  font-variant-numeric: tabular-nums;
}

html._page, body._page {
  opacity: 1;
}

body {
  flex: 1;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  cursor: pointer;
  color: #999;
  font-size: 1rem;
  z-index: 3;
  transition: color 0.2s ease-in-out;
}

.toggle-password:hover {
  color: #3d4dff;
}

.fs-7 {
  font-size: 0.75rem;
}

.fs-8 {
  font-size: 0.65rem;
}

.cursor-pointer {
  cursor: pointer;
}

.cursor-not-allowed {
  cursor: not-allowed;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.animate-pulse {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.4;
  }
}

@media (max-width: 640px) {
    .toast {
        font-size: 1rem !important;
    }

    .toast-title {
        font-size: 1rem !important;
    }

    .toast-message {
        font-size: .9rem !important;
        line-height: 1.35 !important;
        padding: 6px !important;
    }
}
