/* Auth and account UI. The hidden attribute must win over component display rules. */
[hidden] {
  display: none !important;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-form {
  display: grid;
  gap: 8px;
  max-width: 360px;
}

.hint {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.75;
}

.error {
  margin: 0;
  color: #b42318;
}

.sync-status {
  min-height: 1.2em;
  margin: 0 0 12px;
  font-size: 0.85rem;
  opacity: 0.75;
}

.switch {
  margin-top: 16px;
}

.link-btn,
.secondary-btn {
  background: none;
  border: 1px solid currentColor;
  border-radius: 8px;
  padding: 6px 12px;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.link-btn {
  border: none;
  padding: 0;
  text-decoration: underline;
}

.link-btn:focus-visible,
.secondary-btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
