/* auth-widget.css — shared across index.html, viewer.html, contact.html.
   Relies on the same --accent/--text/--border/--panel custom properties
   each page's own stylesheet already defines (confirmed consistent
   across all three before building this separately). */

#auth-widget {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-widget-trigger {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.auth-widget-trigger:hover { color: var(--accent); }

.auth-widget-loggedin {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.auth-widget-credits {
  font-weight: 700;
  color: var(--accent);
}
.auth-widget-email {
  color: var(--text);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.auth-widget-logout {
  font-size: 13px;
  color: var(--text);
  opacity: 0.55;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  text-decoration: underline;
}
.auth-widget-logout:hover { opacity: 1; }

.auth-widget-dropdown {
  position: fixed;
  width: 260px;
  z-index: 200;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
  padding: 16px;
}
.auth-widget-dropdown.hidden { display: none; }
.auth-widget-dropdown p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
}
.auth-widget-dropdown input {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 13px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 10px;
}
.auth-widget-dropdown button {
  width: 100%;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  background: var(--accent);
  color: #1a1206;
  border: none;
  border-radius: 6px;
  padding: 8px 0;
  cursor: pointer;
}
.auth-widget-dropdown button:disabled { opacity: 0.5; cursor: not-allowed; }
.auth-widget-status {
  font-size: 12px;
  margin-top: 8px;
  color: var(--muted, #6b7280);
}
.auth-widget-status.error { color: #c0392b; }
