/* These styles are generated from project.scss. */

.alert-debug {
  color: black;
  background-color: white;
  border-color: #d6e9c6;
}

.alert-error {
  color: #b94a48;
  background-color: #f2dede;
  border-color: #eed3d7;
}

[id^="error_1"] {
    color: #b91c1c;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
}

.auth-popup {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Mono', 'Rama Gothic', monospace;
}

.auth-popup.hidden {
  display: none;
}

.auth-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(2px);
}

.auth-popup-card {
  position: relative;
  width: min(520px, 92vw);
  background: #111;
  border: 2px solid #ffe600;
  border-radius: 16px;
  padding: 28px 24px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.auth-popup-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.auth-popup-subtitle {
  color: #cfcfcf;
  font-size: 1rem;
  margin-bottom: 22px;
  line-height: 1.5;
}

.auth-popup-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.auth-popup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 10px;
  border: 1px solid #555;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  background: #222;
  min-width: 140px;
}

.auth-popup-btn:hover {
  border-color: #ffe600;
  transform: translateY(-1px);
}

.auth-popup-btn-primary {
  background: #ffe600;
  color: #181818;
  border-color: #ffe600;
  box-shadow: 0 4px 16px rgba(255, 230, 0, 0.2);
}

.auth-popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  color: #ffe600;
  font-size: 24px;
  cursor: pointer;
}

body.auth-popup-active {
  overflow: hidden;
}

/* Avoid flashing plugin access text before JS settles the state */
.plugin-access-btn {
  transition: opacity 0.2s ease;
}

.plugin-access-btn--pending {
  opacity: 0;
  pointer-events: none;
}

/* Inline checkbox styling (e.g. allauth signup consents) */
input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin-top: 0.125rem;
  accent-color: #ffe600;
}
