.votehub-login-button {
  position: relative;
  width: 32px;
  height: 32px;
}

.votehub-login-button__loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.votehub-login-button__loading-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--vh-dark-skeleton, #e5e5e5);
  animation: votehub-login-button-pulse 1.5s ease-in-out infinite;
}

@keyframes votehub-login-button-pulse {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.7;
  }
}

.votehub-login-button.is-ready .votehub-login-button__loading {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.votehub-login-button__signin-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 50%;
  background: var(--bg-elevated, #ffffff);
  border: 1px solid var(--stroke-soft, #e5e5e5);
  color: var(--text-secondary, #4a4a4a);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0;
}

.votehub-login-button.is-ready .votehub-login-button__signin-circle {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.votehub-login-button__signin-circle:hover {
  background: var(--secondary-hover, #eef0f7);
  border-color: var(--field-border, #d2d2d7);
  color: var(--text-primary, #1a1a1a);
  transform: scale(1.05);
}

.votehub-login-button__signin-circle:active {
  transform: scale(0.98);
}

.votehub-login-button__user-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.votehub-login-button__authenticated {
  display: inline-block;
  opacity: 0;
}

.votehub-login-button.is-ready .votehub-login-button__authenticated {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.votehub-login-button__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 50%;
  background: var(--primary-bg, #7c3aed);
  color: var(--primary-text, #ffffff);
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  padding: 0;
  transition: all 0.2s ease;
  line-height: 1;
  position: relative;
}

.votehub-login-button__avatar span {
  display: inline-block;
  min-width: 1ch;
  text-align: center;
}

.votehub-login-button__avatar:hover {
  background: var(--primary-bg-hover, #6a2fdb);
  transform: scale(1.05);
}

.votehub-login-button__avatar:active {
  background: var(--primary-bg-active, #5a26c7);
  transform: scale(0.98);
}

.votehub-login-button__avatar:focus {
  outline: 2px solid var(--primary-focus, #c9b6ff);
  outline-offset: 2px;
}

.votehub-login-button__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--bg-elevated, #ffffff);
  border: 1px solid var(--stroke-soft, #e5e5e5);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 0;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
  overflow: hidden;
}

.votehub-login-button__dropdown-header {
  padding: 12px 16px;
}

.votehub-login-button__dropdown-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary, #1a1a1a);
  line-height: 1.4;
  margin-bottom: 2px;
}

.votehub-login-button__dropdown-email {
  font-size: 13px;
  color: var(--text-muted, #737373);
  line-height: 1.4;
}

.votehub-login-button__dropdown-separator {
  height: 1px;
  background: var(--stroke-soft, #e5e5e5);
  margin: 0;
}

.votehub-login-button__dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.votehub-login-button__dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-primary, #1a1a1a);
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease;
  text-align: left;
  font-family: inherit;
  line-height: 1.4;
}

.votehub-login-button__dropdown-item span {
  flex: 1;
}

.votehub-login-button__dropdown-item:hover {
  background: var(--secondary-hover, #eef0f7);
  color: var(--text-primary, #1a1a1a);
  text-decoration: none;
}

.votehub-login-button__dropdown-item:first-of-type {
  margin-top: 0;
}

.votehub-login-button__dropdown-item:active {
  background: var(--secondary-active, #e4e6ef);
}

.votehub-login-button__dropdown-item:focus {
  outline: 2px solid var(--primary-focus, #c9b6ff);
  outline-offset: -2px;
}

.votehub-login-button__dropdown-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
}

