/**
 * Auth Modal — Destination List
 *
 * Custom checkbox list for selecting destinations/options during registration.
 * Part of the auth-modal module split from auth-modal.css.
 *
 * @see static/css/auth-modal.css (original)
 */

.destination-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.destination-list--compact {
  gap: 0.5rem;
}

.destination-entry {
  position: relative;
}

.destination-entry__label {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.75rem 1rem;
  border-radius: 0.85rem;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.destination-entry__label:hover {
  background-color: rgba(var(--gf-color-primary-rgb), 0.06);
}

.destination-entry__checkbox {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.45rem;
  border: 2px solid rgba(15, 23, 42, 0.15);
  background-color: #ffffff;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.destination-entry__checkbox::after {
  content: '';
  position: absolute;
  width: 0.4rem;
  height: 0.8rem;
  border-right: 3px solid #ffffff;
  border-bottom: 3px solid #ffffff;
  transform: rotate(45deg);
  top: 0.1rem;
  left: 0.45rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.destination-entry__text {
  flex: 1 1 auto;
}

.destination-entry__input:focus-visible + .destination-entry__label {
  outline: 3px solid rgba(var(--gf-color-primary-rgb), 0.25);
  outline-offset: 2px;
}

.destination-entry__input:checked + .destination-entry__label {
  background-color: rgba(var(--gf-color-primary-rgb), 0.08);
  box-shadow: 0 0 0 0.25rem rgba(var(--gf-color-primary-rgb), 0.08);
}

.destination-entry__input:checked + .destination-entry__label .destination-entry__checkbox {
  background-color: var(--gf-color-primary);
  border-color: var(--gf-color-primary);
  color: #ffffff;
}

.destination-entry__input:checked + .destination-entry__label .destination-entry__checkbox::after {
  opacity: 1;
}

.destination-entry--compact .destination-entry__label {
  padding: 0.6rem 0.85rem;
  gap: 0.7rem;
  border-radius: 0.75rem;
}

.destination-entry--compact .destination-entry__checkbox {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 0.35rem;
}

.destination-entry--compact .destination-entry__checkbox::after {
  width: 0.3rem;
  height: 0.6rem;
  left: 0.36rem;
  top: 0.05rem;
  border-right-width: 2px;
  border-bottom-width: 2px;
}

.destination-entry--compact .destination-entry__text {
  font-size: 0.95rem;
}
