/* Shared by the ReUI sign-in form and script-free OAuth pages. */
body:has(> .auth-page) {
  margin: 0;
}
@font-face {
  font-family: "Instrument Sans Variable";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/instrument-sans-latin.woff2") format("woff2");
}
.auth-page {
  --auth-ink: oklch(0.2 0.006 286);
  --auth-muted: oklch(0.47 0.014 270);
  --auth-border: oklch(0.9 0.004 286);
  --auth-accent: oklch(0.48 0.21 278);
  box-sizing: border-box;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
  background: oklch(0.967 0.001 286);
  color: var(--auth-ink);
  font:
    13px/1.5 "Instrument Sans Variable",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
.auth-page * {
  box-sizing: border-box;
}
.auth-card {
  width: 100%;
  max-width: 400px;
  min-width: 0;
  padding: 24px;
  background: white;
  border: 1px solid var(--auth-border);
  border-radius: 12px;
  box-shadow: 0 2px 8px #00000004;
}
.auth-identity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: inherit;
  text-decoration: none;
}
.auth-identity img {
  width: auto;
  height: 28px;
}
.auth-identity strong {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.04em;
}
.auth-card h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}
.auth-card p {
  margin: 12px 0 0;
  overflow-wrap: anywhere;
}
.auth-card .auth-description {
  margin-top: 8px;
  color: var(--auth-muted);
}
.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}
.auth-card .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}
.auth-card .field > span {
  color: var(--auth-ink);
  font-size: 12px;
  font-weight: 550;
  line-height: 16px;
}
.auth-card .field > input {
  width: 100%;
  height: 36px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--auth-border);
  border-radius: 6px;
  font: inherit;
  background: white;
  color: inherit;
}
.auth-card .auth-button,
.auth-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #d4d4d8;
  border-radius: 6px;
  background: linear-gradient(to top, #f4f4f5, white);
  box-shadow: 0 1px 2px #0000000d;
  color: var(--auth-ink);
  font: inherit;
  font-weight: 550;
  text-decoration: none;
  cursor: pointer;
}
.auth-card .primary,
.auth-card button[value="approve"],
.auth-card .auth-form > button:only-of-type {
  border-color: #27272a;
  background: radial-gradient(ellipse at 52% -52%, #66666a, #27272a);
  color: white;
  box-shadow:
    inset 0 1px #ffffff30,
    0 1px 3px #00000020;
}
.auth-card button:hover,
.auth-card .auth-button:hover {
  filter: brightness(1.06);
}
.auth-card :is(input, button, a):focus-visible {
  outline: 2px solid var(--auth-accent);
  outline-offset: 3px;
}
.auth-card button:disabled {
  cursor: wait;
  opacity: 0.6;
}
.auth-help {
  display: inline-block;
  margin-top: 14px;
  color: var(--auth-accent);
  text-underline-offset: 3px;
}
.auth-card .auth-note {
  margin-top: 16px;
  color: var(--auth-muted);
  font-size: 11px;
  line-height: 1.5;
}
.auth-card .auth-error {
  margin: 0;
  padding: 8px 10px;
  border-radius: 6px;
  background: #fff4f2;
  color: #9f3024;
  font-size: 12px;
}
.auth-scopes {
  border: 1px solid var(--auth-border);
  border-radius: 8px;
  overflow: hidden;
}
.auth-scope {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 12px;
  cursor: pointer;
}
.auth-scope + .auth-scope {
  border-top: 1px solid var(--auth-border);
}
.auth-scope input {
  width: 14px;
  height: 14px;
  margin: 3px 0 0;
  accent-color: var(--auth-accent);
}
.auth-scope strong,
.auth-scope small {
  display: block;
}
.auth-scope strong {
  font-size: 12px;
  font-weight: 600;
}
.auth-scope small {
  margin-top: 3px;
  color: var(--auth-muted);
  font-size: 11px;
  line-height: 1.5;
}
.auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (max-width: 620px) {
  .auth-card {
    padding: 20px;
  }
  .auth-card .field > input {
    height: 40px;
    font-size: 16px;
  }
  .auth-card .auth-button,
  .auth-card button {
    height: 40px;
    min-height: 40px;
  }
}
