/* =========================================================================
   ApexityEdu — LoginPage route branding (v2.34 LOGIN-TENANT-BRANDING)
   -------------------------------------------------------------------------
   `/login` and `/login/<school_slug>` are two different portals and the card
   header must never mix their brands:

     /login (root: data-portal="platform")
       ONLY the ApexityEdu wordmark, title `Login - ApexityEdu`.

     /login/<school_slug> (root: data-portal="school")
       ONLY the school's own logo (school.logo_url, else the neutral
       default-school glyph in the same fixed box), title `Login - <School>`.

   Geometry continues to live in login.css: `.login-logo` is a fixed 80px box
   and everything inside it uses `object-fit: contain`, so a tall crest, a
   square badge or a wide wordmark keeps its own aspect ratio. This file only
   adds what the route split needs — the platform wordmark's proportions, the
   school-code chip and the tenant/universal state hooks.
   ========================================================================= */

/* The ApexityEdu wordmark is a wide supplied lockup (559x85 ≈ 6.6:1) — cap it
   by width so it never fills the logo box, and trim its height so it looks
   right where a crest would be. */
.login-logo .login-logo-img.server-platform-logo {
  max-width: 208px;
  max-height: 62px;
}

/* v3.4 (BRAND): the wordmark is navy-on-transparent. On a dark card it sits on
   a light plate rather than being recoloured. */
[data-theme="dark"] .login-logo .login-logo-img.server-platform-logo {
  background: #F8FAF9;
  border-radius: 8px;
  padding: 6px 10px;
  box-sizing: border-box;
}

/* A school's uploaded logo is free-form (tall crest, square badge, wide
   wordmark). It gets the whole box; `contain` does the rest. */
.login-logo .login-logo-img.server-school-logo {
  max-width: 200px;
  max-height: 80px;
}

/* --- Tenant card: the school code chip ---------------------------------- */

.login-school-chip {
  display: inline-block;
  margin: var(--space-3) 0 0;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--login-card-border);
  background: var(--paper-soft, rgba(37, 99, 235, 0.08));
  color: var(--ink-mute);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-school-chip[hidden] {
  display: none;
}

/* --- Universal portal: the SCHOOLCODE-ID routing note -------------------- */

#login-route-note[hidden] {
  display: none;
}
