.account-strip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #dfe7f5;
  flex-wrap: wrap;
  font-size: 13px;
  justify-content: center;
  max-width: 100%;
}

.account-identity {
  align-items: start;
  border: 1px solid rgba(255, 167, 38, 0.36);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.18), rgba(30, 136, 229, 0.16));
  display: grid;
  gap: 2px;
  min-width: 180px;
  padding: 9px 13px;
  text-align: left;
}

.account-identity span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.account-identity strong {
  color: #fff;
  font-size: 15px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.account-strip a,
.account-strip button {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(13, 24, 51, 0.72);
  color: #fff;
  cursor: pointer;
  padding: 8px 13px;
  text-decoration: none;
}
.account-strip button {
  border-radius: 8px;
  background: linear-gradient(135deg, var(--poly-primary-alpha), var(--talk-primary-alpha));
}

.account-strip form { margin: 0; }

.ui-locale-switcher {
  display: inline-grid;
  min-width: 132px;
}

.ui-locale-switcher select {
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  min-height: 36px;
  padding: 7px 34px 7px 12px;
}

.ui-locale-switcher-compact { min-width: 118px; }

.account-strip .ui-locale-switcher select {
  background:
    linear-gradient(135deg, var(--poly-primary-alpha), var(--talk-primary-alpha)),
    rgba(13, 24, 51, 0.72);
  border-color: rgba(255, 255, 255, 0.16);
}


.ui-locale-switcher .custom-language-select-button {
  background:
    linear-gradient(135deg, var(--poly-primary-alpha), var(--talk-primary-alpha)),
    rgba(13, 24, 51, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  min-height: 36px;
  padding: 7px 13px;
}

.ui-locale-switcher .custom-language-select-button::after {
  font-size: 15px;
  margin-left: auto;
}

.ui-locale-switcher .custom-language-select-list {
  background: rgba(13, 24, 51, 0.98);
  border-color: rgba(30, 136, 229, 0.48);
  border-radius: 9px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 122, 24, 0.12);
  min-width: 100%;
  padding: 5px;
  top: calc(100% + 5px);
}

.ui-locale-switcher .custom-language-select-option {
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  min-height: 34px;
  padding: 7px 9px;
}

.ui-locale-switcher .custom-language-select-option.is-selected {
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.18), rgba(30, 136, 229, 0.22));
  box-shadow: inset 3px 0 0 rgba(255, 122, 24, 0.78);
}

.ui-locale-switcher .custom-language-select-option:hover,
.ui-locale-switcher .custom-language-select-option:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.ui-locale-switcher .language-flag-icon {
  height: 13px;
  width: 20px;
}

.account-strip .ui-locale-switcher .custom-language-select-option {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.account-strip .ui-locale-switcher .custom-language-select-option.is-selected {
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.18), rgba(30, 136, 229, 0.22));
  box-shadow: inset 3px 0 0 rgba(255, 122, 24, 0.78);
}

.account-strip .ui-locale-switcher .custom-language-select-option:hover,
.account-strip .ui-locale-switcher .custom-language-select-option:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.account-strip .ui-locale-switcher .custom-language-select-button {
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: none;
}

.account-strip .ui-locale-switcher .custom-language-select.is-open .custom-language-select-button,
.account-strip .ui-locale-switcher .custom-language-select-button:focus-visible {
  border-color: rgba(255, 122, 24, 0.74);
  box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.14), 0 0 24px rgba(30, 136, 229, 0.16);
}

@media (max-width: 700px) {
  .account-strip {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(132px, 1fr) 44px auto;
    max-width: 430px;
    width: 100%;
  }

  .account-identity {
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
  }

  .account-strip .settings-toggle {
    height: 44px;
    width: 44px;
  }

  .account-strip .ui-locale-switcher {
    min-width: 0;
    width: 100%;
  }

  .account-strip .ui-locale-switcher .custom-language-select-button {
    border-radius: 10px;
    min-height: 44px;
  }

  .account-strip form,
  .account-strip form button {
    min-width: 0;
    width: 100%;
  }

  .account-strip form button {
    min-height: 44px;
    padding: 0 12px;
    white-space: nowrap;
  }
}

.auth-locale-switcher {
  min-width: 132px;
  position: absolute;
  right: 0;
  top: 0;
}

.auth-locale-switcher select {
  background: rgba(13, 24, 51, 0.82);
  border-color: rgba(255, 167, 38, 0.34);
}

.auth-body {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(320px, 480px) minmax(260px, 360px);
  gap: 18px;
  width: min(900px, 100%);
}

.auth-panel,
.auth-aside {
  border: 1px solid var(--line);
  background: rgba(22, 33, 62, 0.94);
  box-shadow: var(--shadow);
}

.auth-panel {
  display: grid;
  gap: 20px;
  border-radius: 18px;
  padding: 28px 34px 34px;
}

.auth-brand {
  display: inline-grid;
  justify-items: start;
  gap: 4px;
  min-height: 156px;
  padding-right: 154px;
  position: relative;
}

.beta-notice-auth {
  margin-top: -8px;
}

.auth-logo {
  width: 150px;
  height: auto;
  filter: drop-shadow(0 4px 20px rgba(255, 122, 24, 0.24));
}

.auth-copy { display: grid; gap: 10px; }
.auth-copy h1 { font-size: 38px; }
.auth-copy p {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.auth-primary {
  align-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--poly-primary), var(--talk-primary));
  box-shadow: 0 14px 34px rgba(30, 136, 229, 0.24);
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  text-decoration: none;
}

.auth-error {
  border: 1px solid rgba(255, 82, 82, 0.4);
  border-radius: 10px;
  background: rgba(255, 82, 82, 0.12);
  color: #ffd6d6;
  margin: 0;
  padding: 10px 12px;
}

.auth-aside {
  align-content: space-between;
  border-radius: 18px;
  display: grid;
  gap: 24px;
  padding: 22px;
}

.auth-partner {
  align-self: start;
  display: block;
  justify-self: end;
  padding: 22px 8px 0;
}

.auth-partner-logo {
  clear: both;
  display: block;
  filter: drop-shadow(0 12px 28px rgba(68, 155, 255, 0.18));
  height: auto;
  max-width: 100%;
  opacity: 0.94;
  width: 100%;
}

.auth-aside span.auth-powered-pill {
  color: white;
  float: right;
  margin: 0 0 10px;
}

.auth-benefits {
  display: grid;
  gap: 12px;
}

.auth-aside article {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(13, 24, 51, 0.46);
  display: grid;
  gap: 6px;
  padding: 16px;
}

.auth-aside span {
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
}

.auth-aside strong { color: #fff; }

@media (max-width: 760px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-panel { padding: 20px 24px 24px; }
  .auth-brand { min-height: 140px; padding-right: 0; }
  .auth-locale-switcher { min-width: 120px; }
  .auth-copy h1 { font-size: 30px; }
}
