/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */
:root {
  --auth-light-blue-400: #36bffa;
  --auth-light-violet-500: #8b5cf6;
  --auth-purple-500: #a855f7;
  --auth-purple-600: #9333ea;
}

.auth-bg {
  background: linear-gradient(135deg, var(--auth-light-blue-400) 0%, var(--auth-light-violet-500) 35%, var(--auth-purple-500) 70%, var(--auth-purple-600) 100%);
}

.dark .auth-bg {
  background: #0f172a;
}

.hex-grid {
  opacity: .25;
  mix-blend-mode: multiply;
  background-image: url("https://staging.gojld.com/build/assets/light_hexagon-BbyoC41T.png");
  background-position: 0 0;
  background-repeat: repeat;
  background-size: 250px;
  background-attachment: fixed;
}

.dark .hex-grid {
  opacity: .15;
  mix-blend-mode: screen;
  background-image: url("https://staging.gojld.com/build/assets/dark_hexagon-8_RtbppO.png");
  background-position: 0 0;
  background-repeat: repeat;
  background-size: 250px;
  background-attachment: fixed;
}

#theme-toggle-auth .fa-sun {
  display: block;
}

.dark #theme-toggle-auth .fa-sun {
  display: none !important;
}

#theme-toggle-auth .fa-moon {
  display: none;
}

.dark #theme-toggle-auth .fa-moon {
  display: block !important;
}

.area-search-input-wrapper {
  width: 100%;
  position: relative;
}

#area-search-input {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  transition: all .2s;
}

.dark #area-search-input {
  color: #f3f4f6;
  background-color: #1f2937;
  border-color: #374151;
}

#area-search-input:focus {
  border-color: #465fff;
  outline: none;
  box-shadow: 0 0 0 3px #465fff1a;
}

.dark #area-search-input:focus {
  border-color: #465fff;
  box-shadow: 0 0 0 3px #465fff33;
}

#area-search-results {
  opacity: 0;
  pointer-events: none;
  z-index: 1000;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  max-height: 0;
  margin-top: 4px;
  transition: max-height .3s, opacity .3s;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  overflow-y: auto;
  box-shadow: 0 10px 25px #0000001a;
}

.dark #area-search-results {
  background-color: #1f2937;
  border-color: #374151;
}

#area-search-results.show {
  opacity: 1;
  pointer-events: auto;
  max-height: 300px;
}

.area-search-loading, .area-search-no-results {
  text-align: center;
  color: #666;
  padding: 16px;
  font-size: 14px;
}

.dark .area-search-loading, .dark .area-search-no-results {
  color: #aaa;
}

.area-search-loading {
  justify-content: center;
  align-items: center;
  gap: 8px;
  display: flex;
}

.area-search-loading:before {
  content: "";
  border: 2px solid #e5e7eb;
  border-top-color: #465fff;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: .8s linear infinite spin;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.area-search-result-item {
  cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
  padding: 12px 16px;
  transition: background-color .15s;
}

.dark .area-search-result-item {
  border-bottom-color: #374151;
}

.area-search-result-item:last-child {
  border-bottom: none;
}

.area-search-result-item:hover {
  background-color: #f9fafb;
}

.dark .area-search-result-item:hover {
  background-color: #111827;
}

.area-search-result-name {
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 500;
}

.dark .area-search-result-name {
  color: #f3f4f6;
}

.area-search-result-aliases {
  color: #9ca3af;
  margin-top: 4px;
  font-size: 12px;
}

.dark .area-search-result-aliases {
  color: #6b7280;
}

#selected-areas-list {
  flex-wrap: wrap;
  gap: 8px;
  min-height: 32px;
  margin-top: 12px;
  display: flex;
}

#no-areas-message {
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 32px;
  display: flex;
}

.selected-area-tag {
  background-color: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
}

.dark .selected-area-tag {
  background-color: #374151;
  border-color: #4b5563;
}

.selected-area-tag.primary {
  color: #1e40af;
  background-color: #dbeafe;
  border-color: #93c5fd;
}

.dark .selected-area-tag.primary {
  color: #93c5fd;
  background-color: #1e3a8a;
  border-color: #1e40af;
}

.primary-badge {
  text-transform: uppercase;
  background-color: #fff9;
  border-radius: 4px;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 600;
  display: inline-flex;
}

.remove-area {
  color: inherit;
  cursor: pointer;
  background: none;
  border: none;
  align-items: center;
  padding: 0;
  font-size: 16px;
  transition: opacity .2s;
  display: flex;
}

.remove-area:hover {
  opacity: .7;
}

.auth-input-icon {
  width: 100%;
  position: relative;
}
