/* Language dropdown for the auth pages (login, signup).

   The original .auth-lang-btn pills stay in the DOM but hidden — the dropdown
   clicks them, so auth-i18n.js remains the only thing that switches language.
   Pair this with assets/js/auth-lang-select.js.

   The host page must give .auth-right position:relative; the switcher is
   positioned against it. */

/* The original DA/EN pills stay in the DOM — the dropdown clicks them so the
   site's own switching code remains the single source of truth. */
.auth-lang-switcher .auth-lang-btn {
  display: none;
}

.auth-right .auth-lang-switcher {
  position: absolute;
  top: 26px;
  right: 26px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.lang-select {
  position: relative;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(27, 39, 51, 0.14);
  border-radius: 999px;
  background: #fff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(27, 39, 51, 0.78);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.lang-trigger:hover {
  background: rgba(27, 39, 51, 0.03);
  border-color: rgba(27, 39, 51, 0.22);
}

.lang-trigger .lang-globe {
  opacity: 0.55;
}

.lang-trigger .lang-chev {
  opacity: 0.45;
  transition: transform 0.18s ease;
}

.lang-trigger[aria-expanded="true"] .lang-chev {
  transform: rotate(180deg);
}

.lang-trigger:focus-visible {
  outline: none;
  border-color: rgba(22, 140, 164, 0.5);
  box-shadow: 0 0 0 3px rgba(22, 140, 164, 0.12);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  min-width: 120px;
  padding: 6px;
  border: 1px solid rgba(27, 39, 51, 0.1);
  border-radius: 14px;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(20, 32, 45, 0.04),
    0 12px 28px -8px rgba(20, 32, 45, 0.18);
}

.lang-menu[hidden] {
  display: none;
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 450;
  color: rgba(27, 39, 51, 0.8);
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease;
}

.lang-option:hover {
  background: rgba(27, 39, 51, 0.045);
}

.lang-option .lang-tick {
  color: #168CA4;
  opacity: 0;
  flex: none;
}

.lang-option[aria-selected="true"] {
  font-weight: 550;
  color: #1B2733;
}

.lang-option[aria-selected="true"] .lang-tick {
  opacity: 1;
}

.lang-option:focus-visible {
  outline: none;
  background: rgba(22, 140, 164, 0.08);
}
