/* ============================================================
   AUTH — sign in / register. Centred card (old positioning),
   November visuals: paper card on a rail field, lime corner
   decoration, Archivo wordmark + Instrument Serif tagline.
   ============================================================ */
.kb-auth {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-7);
  background: var(--rail);
  overflow: hidden;
}
.kb-auth::after {
  content: "";
  position: absolute;
  top: -90px;
  right: -90px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--lime);
  pointer-events: none;
}
.kb-auth__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 360px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 40px 36px;
  box-shadow: 0 24px 60px -28px rgba(12, 13, 14, .25);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.kb-auth__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}
.kb-auth__brand { display: flex; align-items: center; gap: 10px; }
.kb-auth__brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex: none;
}
.kb-auth__logo {
  font-family: var(--display);
  font-size: var(--fs-9);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--ink);
}
.kb-auth__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--accent);
}
.kb-auth__btn { width: 100%; height: 42px; }
.kb-auth__error {
  font-family: var(--read);
  font-size: var(--fs-4);
  color: var(--red);
  text-align: center;
}
.kb-auth__divider {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  font-size: var(--fs-2);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}
.kb-auth__divider::before,
.kb-auth__divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Profile — avatar text field + colour picker swatches */
.kb-avatar-editor__input { width: 3.2em; text-align: center; font-size: 22px; }
.kb-avatar-swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.kb-avatar-swatch { cursor: pointer; line-height: 0; }
.kb-avatar-swatch__input { position: absolute; opacity: 0; width: 0; height: 0; }
.kb-avatar-swatch__dot {
  display: block; width: 26px; height: 26px; border-radius: 50%;
  background: var(--swatch);
  box-shadow: 0 0 0 2px var(--paper);
  transition: box-shadow .12s ease;
}
.kb-avatar-swatch:hover .kb-avatar-swatch__dot { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--line-2); }
.kb-avatar-swatch__input:checked + .kb-avatar-swatch__dot { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--swatch); }
.kb-avatar-swatch__input:focus-visible + .kb-avatar-swatch__dot { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--swatch); }

