/* Loaded by a <link> the branding-index init container adds to index.html.
 * Login button styled like st-peikko's classic primary button
 * (components/Button.tsx): #393832 pill, white text, at least 60px tall, centred,
 * press scale 0.96. Gramatika is not loaded in LibreChat, so the font stays Inter.
 * Selector: LibreChat v0.8.8 SocialButton renders <a data-testid="openid">. */
a[data-testid="openid"] {
  justify-content: center;
  min-height: 64px;
  margin-top: 1.5rem; /* + LibreChat's 0.5rem = 2rem below the greeting */
  border: 0;
  border-radius: 9999px;
  background-color: #393832;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 500;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

a[data-testid="openid"] img {
  width: 1.5rem;
  height: 1.5rem;
}

a[data-testid="openid"]:hover {
  background-color: #1b1a17;
}

a[data-testid="openid"]:active {
  transform: scale(0.96);
}

a[data-testid="openid"]:focus-visible {
  outline: 2px solid #3debcc;
  outline-offset: 2px;
}

/* Dark theme: a dark pill would vanish into the dark page, so use the mint
 * login variant from st-peikko (LoginPrimaryButton.tsx: #3debcc with #393832
 * text). Buddle is mint too, so it sits on a small dark badge to stay visible. */
.dark a[data-testid="openid"] {
  background-color: #3debcc;
  color: #393832;
}

.dark a[data-testid="openid"]:hover {
  background-color: #13b99d;
}

.dark a[data-testid="openid"] img {
  box-sizing: content-box;
  padding: 0.3rem;
  border-radius: 9999px;
  background-color: #393832;
}

/* Lift the greeting and button from the geometric to the optical centre. The
 * login page centres this block with flex; a bottom margin of 12vh moves it up
 * by about 6vh. :has() limits it to the page with the login button. */
main:has(a[data-testid="openid"]) > div {
  margin-bottom: 12vh;
}
