.auth-widget {
  position: absolute;
  top: 5px;
  right: 60px;
  display: flex;
  align-items: center;
}

.auth-toggle {
  background: #1f2937;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 12px;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-panel {
  position: absolute;
  right: 0;
  top: 48px;
  width: min(260px, 85vw);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
  backdrop-filter: blur(10px);
  display: none;
  flex-direction: column;
  gap: 10px;
  z-index: 1200;
}

.auth-widget.is-open .auth-panel {
  display: flex;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-form label {
  font-size: 12px;
  color: #444;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-form input {
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 8px 10px;
}

.auth-form button {
  background: #ff6db0;
  border: none;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 600;
}

.auth-logout {
  display: none;
  background: #111827;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}

.auth-widget[data-auth-state="signed-in"] .auth-form {
  display: none;
}

.auth-widget[data-auth-state="signed-in"] .auth-logout {
  display: block;
}

.auth-message {
  margin: 0;
  font-size: 12px;
  color: #d14b7a;
}
