.auth-account-selector {
  min-width: 0;
  margin: 0 0 22px;
  border: 0;
  padding: 0;
}

.auth-release-notice {
  width: min(100%, var(--control-width));
  margin-top: 52px;
  padding: 12px 20px;
  color: var(--color-brand-dark);
  text-align: center;
}

.auth-release-message {
  margin: 0;
  color: var(--color-ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
}

.auth-release-english {
  margin: 8px 0 0;
  color: var(--color-brand);
  font-family: var(--font-brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.24em;
  line-height: 1.4;
}

.auth-release-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 12px;
  margin-top: 14px;
}

.auth-release-loader span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-brand);
  animation: auth-release-loading 1.2s ease-in-out infinite;
}

.auth-release-loader span:nth-child(2) {
  animation-delay: 0.16s;
}

.auth-release-loader span:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes auth-release-loading {
  0%,
  60%,
  100% {
    opacity: 0.28;
    transform: translateY(0) scale(0.8);
  }

  30% {
    opacity: 1;
    transform: translateY(-4px) scale(1);
  }
}

.auth-account-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  border-radius: var(--radius-control);
  background: rgb(255 255 255 / 52%);
  padding: 4px;
}

.auth-account-tab {
  min-width: 0;
  cursor: pointer;
}

.auth-account-tab-input {
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.auth-account-tab-label {
  min-height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--color-subtext);
  line-height: 1.3;
  text-align: center;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.auth-account-tab-name {
  font-size: 13px;
  font-weight: 700;
}

.auth-account-tab-action {
  margin-top: 2px;
  font-size: 10px;
  font-weight: 700;
}

.auth-account-tab-input:checked + .auth-account-tab-label {
  border-color: rgba(var(--color-brand-rgb), 0.24);
  background: #fff;
  box-shadow: none;
  color: var(--color-brand-dark);
}

.auth-account-tab-input:focus-visible + .auth-account-tab-label {
  outline: 2px solid rgba(var(--color-brand-rgb), 0.45);
  outline-offset: 2px;
}

.auth-account-fields {
  min-height: 120px;
  position: relative;
  transition: min-height 0.2s ease;
}

.auth-account-fields-body {
  opacity: 1;
  transition: opacity 0.2s ease;
}

.auth-account-loading[hidden] {
  display: none;
}

.auth-account-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.auth-account-loading-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(var(--color-brand-rgb), 0.2);
  border-top-color: var(--color-brand);
  border-radius: 50%;
  animation: auth-account-loading-spin 0.72s linear infinite;
}

.auth-account-fields.is-switching .auth-account-fields-body {
  opacity: 0;
  pointer-events: none;
}

.auth-account-fields.is-switching .auth-account-loading {
  opacity: 1;
}

.auth-login-submit {
  opacity: 1;
  transition: opacity 0.2s ease;
}

.auth-login-submit.is-account-switching {
  opacity: 0;
  pointer-events: none;
}

.auth-account-secondary-actions {
  display: grid;
  gap: 16px;
  margin-top: var(--auth-primary-action-gap, 36px);
  opacity: 1;
  transition: opacity 0.2s ease;
}

.auth-account-secondary-actions .button + .button {
  margin-top: 0;
}

.auth-account-secondary-actions .button[hidden] {
  display: none;
}

.auth-account-secondary-actions.is-account-switching {
  opacity: 0;
  pointer-events: none;
}

@keyframes auth-account-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-release-loader span,
  .auth-account-fields-body,
  .auth-account-fields,
  .auth-account-loading,
  .auth-login-submit,
  .auth-account-secondary-actions {
    transition: none;
  }

  .auth-release-loader span,
  .auth-account-loading-spinner {
    animation: none;
  }
}
