.auth-widget {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 9999;
  font-family: -apple-system, "Noto Sans CJK TC", "Microsoft JhengHei", sans-serif;
  font-size: 14px;
}

.auth-btn-login {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 20px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.auth-btn-login:hover {
  background: rgba(0, 0, 0, 0.8);
}

.auth-user {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 20px;
  cursor: pointer;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  user-select: none;
}

.auth-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.auth-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #1a1a22;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 6px;
  display: none;
  flex-direction: column;
  min-width: 150px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.auth-user.open .auth-menu {
  display: flex;
}

.auth-menu a,
.auth-menu button {
  display: block;
  padding: 8px 12px;
  color: #fff;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
  border-radius: 4px;
  white-space: nowrap;
}

.auth-menu a:hover,
.auth-menu button:hover {
  background: rgba(255, 255, 255, 0.1);
}
