/* Glampfire sign-in, first run, join and the unsupported-browser page:
   one centered card on the canvas with a soft brand glow. */
body:not(.app) {
  background:
    radial-gradient(60% 50% at 85% 0%, oklch(85% 0.08 40 / 0.35), transparent 70%),
    radial-gradient(50% 45% at 0% 100%, oklch(85% 0.06 290 / 0.35), transparent 70%),
    var(--gf-canvas);
  min-block-size: 100dvh;

  @media (prefers-color-scheme: dark) {
    background:
      radial-gradient(60% 50% at 85% 0%, oklch(40% 0.1 40 / 0.35), transparent 70%),
      radial-gradient(50% 45% at 0% 100%, oklch(35% 0.08 290 / 0.3), transparent 70%),
      var(--gf-canvas);
  }

  #nav .btn {
    --btn-background: var(--gf-surface);
    --btn-border-color: transparent;

    border-radius: 999px;
    box-shadow: var(--gf-shadow-card);
  }
}

.auth {
  align-content: center;
  display: grid;
  gap: 20px;
  justify-items: center;
  min-block-size: 100%;
  padding: 24px 16px 40px;
}

.auth__card {
  background-color: var(--gf-surface);
  border-radius: 28px;
  box-shadow: var(--gf-shadow-card), 0 24px 60px -24px oklch(0% 0 0 / 0.18);
  display: grid;
  gap: 16px;
  inline-size: min(420px, 100%);
  padding: 32px;

  h1 {
    font-size: 24px;
    font-weight: 650;
    letter-spacing: -0.02em;
    margin: 0;
    text-align: center;
  }

  @media (max-width: 100ch) { padding: 24px 20px; border-radius: 24px; }
}

.auth__card--wide { inline-size: min(640px, 100%); text-align: center; }

.auth__brand {
  display: flex;
  justify-content: center;
  margin-block-end: 4px;
}

.auth__logo { block-size: auto; inline-size: 150px; }

.auth__account-logo {
  block-size: 56px;
  border-radius: 16px;
  inline-size: 56px;
  object-fit: cover;
  outline: 1px solid oklch(0% 0 0 / 0.08);
  outline-offset: -1px;
}

.auth__lead {
  color: var(--gf-ink-subtle);
  margin: -6px 0 0;
  text-align: center;
}

.auth__error {
  align-items: center;
  background-color: color-mix(in oklch, var(--gf-negative) 10%, var(--gf-surface));
  border-radius: 12px;
  color: color-mix(in oklch, var(--gf-negative) 85%, var(--gf-ink));
  display: flex;
  font-size: 14px;
  font-weight: 550;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;

  .icon { block-size: 18px; inline-size: 18px; }
}

.auth__avatar { display: flex; justify-content: center; }
.auth__avatar .hero__image { block-size: 80px; inline-size: 80px; }

.auth__submit {
  --btn-size: 48px;

  font-size: 15px;
  inline-size: 100%;
  margin-block-start: 4px;
}

.auth__footer {
  align-items: center;
  color: var(--gf-ink-subtle);
  display: flex;
  flex-direction: column;
  font-size: 13px;
  gap: 6px;

  a {
    align-items: center;
    color: inherit;
    display: inline-flex;
    gap: 6px;
    text-decoration: none;

    &:hover { color: var(--gf-ink); text-decoration: underline; }
    .icon { block-size: 16px; inline-size: 16px; }
  }
}

/* Unsupported browser list */
.browser-list {
  .browser { gap: 4px; }
  img { block-size: 56px; inline-size: 56px; }
}

/* "Install as a web app" and notification help: a quiet card */
html .notifications-help,
html .pwa__instructions {
  background-color: var(--gf-surface);
  border: 0;
  border-radius: 20px;
  box-shadow: var(--gf-shadow-card);
  font-size: 14px;
}
