/* ==========================================================================
   Sign in with a provider · the button row on /login and /register, the
   pick-a-username page and the "Connected accounts" rows in /account.

   Every colour comes from the same tokens the rest of the site uses, with one
   exception per provider: the mark keeps the provider's own brand colour, which
   is the only thing on the button that identifies it at a glance.

   No display font here. .oauth-btn is body-font on purpose · the button text is
   a provider name, and Minecraftia mangles both "Discord" and "Google".
   ========================================================================== */

.oauth-block { margin-top: 18px; }

/* "or", with a rule either side. */
.oauth-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  color: var(--muted);
  font-size: 13px;
}
.oauth-sep::before,
.oauth-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.oauth-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.oauth-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.2;
  transition: border-color .15s, background .15s;
}
.oauth-btn:hover { border-color: var(--accent); background: var(--panel-2, var(--panel)); }
.oauth-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The mark. A letter in the provider's colour rather than a redrawn logo · see
   the note at the top of src/views/oauth.js. */
.oauth-mark {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: var(--muted);
}
.oauth-mark-discord { background: #5865f2; }
.oauth-mark-google  { background: #ea4335; }

.oauth-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

/* ------------------------------------------------ connected accounts rows */
.oauth-row .acct-row-main { min-width: 0; }
.oauth-row .acct-row-main span { overflow-wrap: anywhere; }
.oauth-row .badge { white-space: nowrap; }

/* ------------------------------------------------------ pick a username */
.oauth-pick .form-row { margin-top: 14px; }
.oauth-blocked p { line-height: 1.55; }
