/* Language switcher (<select data-lang-switcher>). Kept minimal and
   theme-token based so it fits every page it is dropped into. */

.lang-switcher {
  appearance: none;
  -webkit-appearance: none;
  height: 32px;
  padding: 0 28px 0 10px;
  border-radius: var(--r-sm, 8px);
  border: 1px solid var(--c-border);
  background-color: var(--c-surface);
  color: var(--c-text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 14px) calc(50% + 1px), calc(100% - 10px) calc(50% + 1px);
  background-size: 5px 5px;
  background-repeat: no-repeat;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.lang-switcher:hover { background-color: var(--c-surface-2); }
.lang-switcher:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 1px; }

/* Right-aligned switcher row on the login card. */
.auth-lang-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--s-3);
}

/* On the dark branded login sidebar the switcher sits on a dark panel. */
.auth-side .lang-switcher {
  background-color: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.auth-side .lang-switcher:hover { background-color: rgba(255, 255, 255, 0.16); }
