/* Auth/consent modals + toasts (does not affect landing visuals until opened) */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: none;
  place-items: center;
  padding: 24px;
  z-index: 200;
}

.modal-overlay.active {
  display: grid;
}

.modal-card {
  width: min(520px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: #141414;
  color: #ececec;
  padding: 18px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}

.modal-close {
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(236, 236, 236, 0.7);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  float: right;
}

.modal-close:hover {
  color: #ececec;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: rgba(236, 236, 236, 0.7);
}

.form-group input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: #ececec;
  outline: none;
}

.auth-consents {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.consent-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(236, 236, 236, 0.7);
  font-size: 0.9rem;
  margin: 10px 0;
}

.consent-check a {
  color: #ececec;
  text-decoration: underline;
}

.consent-error {
  margin: 8px 0 0;
  color: #ff6b6b;
  font-size: 0.9rem;
}

.modal-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 8px;
  color: rgba(236, 236, 236, 0.65);
}

.modal-divider::before,
.modal-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.12);
}

.btn-social {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #ececec;
  cursor: pointer;
}

.btn-social:hover {
  background: rgba(255, 255, 255, 0.06);
}

.text-link-button {
  background: none;
  border: none;
  padding: 0;
  color: rgba(236, 236, 236, 0.7);
  text-align: left;
  cursor: pointer;
}

.text-link-button:hover {
  color: #ececec;
  text-decoration: underline;
}

.auth-switch {
  color: rgba(236, 236, 236, 0.7);
  font-size: 0.9rem;
}

.auth-switch a {
  color: #ececec;
  text-decoration: underline;
}

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 260;
  display: grid;
  gap: 10px;
}

.site-toast {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(20, 20, 20, 0.92);
  color: #ececec;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  min-width: min(360px, calc(100vw - 48px));
}

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

.site-toast-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-toast-close {
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(236, 236, 236, 0.7);
  font-size: 20px;
  cursor: pointer;
}

.site-toast-close:hover {
  color: #ececec;
}

