/* ÍL·LUKI branding for book.illuki.com (cal.diy).
 *
 * Injected by nginx sub_filter — the same pattern Huly uses here — because
 * NEXT_PUBLIC_APP_NAME and the logo are baked into the client bundle at BUILD
 * time. Without this, the login card says "Cal.diy" no matter what .env says,
 * and fixing it properly would mean a ~15 min image rebuild for a text string.
 */

/* The login/signup card heading: swap the "Cal.diy" text for the wordmark.
 * font-size:0 hides the text while keeping the element's box for the image. */
div.text-center > h1.font-cal {
  font-size: 0 !important;
  line-height: 0 !important;
  /* The supplied art is the ÍL·LUKI OS lockup WITH its mirror reflection, so
   * roughly the top 55% is the wordmark and the rest is the reflection. The
   * height is set for the whole thing — sizing it like a plain wordmark makes
   * the letters look half-size. Aspect is 2.44:1. */
  /* At 2.44:1 and background-size:contain, the rendered WIDTH follows from the
   * height: 130px -> ~317px inside a ~404px card column. Raising the height is
   * the only way to make it wider; contain will never overflow the column. */
  height: 130px;
  margin: -6px auto 10px;
  background-image: url("/illuki-theme/illuki-os-logo.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Screen readers still need a name for the heading. */
div.text-center > h1.font-cal::after {
  content: "ÍL·LUKI OS Calendar";
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Signup is disabled (founders-only), so the "Create account" link under the
 * card only ever lands on /auth/error?error=Signup+is+disabled. Hide it rather
 * than offer a dead end. */
/* The href is ABSOLUTE (https://book.illuki.com/signup?redirect=...), so a
 * ^= prefix match on "/signup" silently fails. Match on substring. */
a[href*="/signup"] {
  display: none !important;
}
