/* Language dropdown on the login pages (look and list match reignvoip.com, dark theme of the panel). */
.langm-hidden { display: none !important; }
.langm { position: relative; flex: none; }
.langm-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(2, 6, 23, 0.42); color: #f1f5f9;
  font: 700 0.9rem/1 inherit; font-family: inherit; cursor: pointer; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.langm-btn:hover, .langm.is-open .langm-btn { border-color: rgba(56, 189, 248, 0.6); background: rgba(56, 189, 248, 0.08); }
.langm-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.35); }
.langm-globe { width: 18px; height: 18px; color: #94a3b8; }
.langm-chev { width: 12px; height: 12px; transition: transform 0.2s; }
.langm.is-open .langm-chev { transform: rotate(180deg); }

/* opens upwards: the language row sits low in the form, below it there is no room */
.langm-list {
  position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 300; min-width: 230px; max-height: 280px; overflow-y: auto; /* the login card clips anything taller */
  scrollbar-width: none; -ms-overflow-style: none; /* scrolls with wheel / touch / keys, no visible bar */
  margin: 0; padding: 6px; list-style: none; border-radius: 16px; background: #0f1722; border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}
.langm-list::-webkit-scrollbar { display: none; width: 0; height: 0; }
.langm.is-open .langm-list { opacity: 1; visibility: visible; transform: none; }
.langm-list [role="option"] { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; outline: none; }
.langm-list [role="option"]:hover, .langm-list [role="option"]:focus-visible { background: rgba(255, 255, 255, 0.07); }
.langm-list [aria-selected="true"] { background: rgba(56, 189, 248, 0.12); }
.langm-text b { display: block; color: #f1f5f9; font-weight: 700; font-size: 0.96rem; }
.langm-list [aria-selected="true"] .langm-text b { color: #7dd3fc; }
.langm-text small { display: block; color: #94a3b8; font-size: 0.74rem; margin-top: 2px; }
.langm-tick { width: 16px; height: 16px; color: #7dd3fc; opacity: 0; flex: none; }
.langm-list [aria-selected="true"] .langm-tick { opacity: 1; }
