/* The 3D model of the headquarters inside the brand panel of the login page (see aj-hq-scene.js).
   Without the scene (no WebGL, data saving, an error) the panel is the plain brand panel it always was. */
.aj-login--scene { max-width: 1180px; }
.aj-login__brand--scene { min-height: 600px; padding-block: 40px; gap: 18px; isolation: isolate; }
.aj-login__brand--scene .aj-hq-top { display: flex; flex-direction: column; gap: 16px; }
.aj-login__brand--scene .aj-hq-top h1 { font-size: 34px; }
.aj-login__brand--scene .aj-hq-top p { max-width: 420px; }
.aj-login__brand--scene .aj-hq-canvas { position: absolute; left: 0; right: 0; top: 205px; bottom: 80px; z-index: 0; opacity: 0; transition: opacity .8s ease; }
.aj-login__brand--scene.is-live .aj-hq-canvas { opacity: 1; }
/* the picture melts into the panel at its top and bottom instead of being cut */
.aj-login__brand--scene .aj-hq-canvas { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 78%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 78%, transparent 100%); }
.aj-login__brand--scene .aj-hq-canvas canvas { display: block; width: 100%; height: 100%; outline: none; }
.aj-login__brand--scene .aj-hq-top, .aj-login__brand--scene .aj-hq-bottom { z-index: 1; }
.aj-login__brand--scene .aj-hq-bottom { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
/* the soft teal fade that keeps the text readable over the picture */
.aj-login__brand--scene::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(23,86,89,.92) 0, rgba(23,86,89,.55) 26%, rgba(23,86,89,0) 42%, rgba(23,86,89,0) 66%, rgba(23,86,89,.85) 100%); }
.aj-hq-cap { min-height: 3.2em; display: flex; flex-direction: column; gap: 2px; }
.aj-hq-cap b { font-size: 15px; font-weight: 700; color: #fff; }
.aj-hq-cap span { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.82); }
.aj-hq-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.aj-hq-chip { font: inherit; font-size: 12.5px; font-weight: 600; height: 34px; padding: 0 13px; border-radius: 999px; cursor: pointer; color: #fff;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.24); transition: background .2s, color .2s, border-color .2s; }
.aj-hq-chip:hover { background: rgba(255,255,255,.22); }
.aj-hq-chip[aria-pressed="true"] { background: var(--aj-gold); border-color: var(--aj-gold); color: #3D2D06; }
.aj-hq-chip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.aj-hq-chips[hidden], .aj-hq-cap[hidden] { display: none; }
.aj-hq-tag { position: absolute; z-index: 3; pointer-events: none; padding: 7px 11px; border-radius: 12px; background: rgba(15,69,71,.95); color: #fff; font-size: 12px; line-height: 1.5; transform: translate(-50%, -125%); white-space: nowrap; }
.aj-hq-tag b { display: block; font-size: 13px; }
.aj-login__brand--scene .aj-hq-canvas { position: absolute; }  /* wins over .aj-login__brand > * */
/* no scene: the chips and the caption have nothing to drive */
.aj-login__brand--scene.is-static .aj-hq-canvas, .aj-login__brand--scene.is-static .aj-hq-chips, .aj-login__brand--scene.is-static .aj-hq-cap { display: none; }
.aj-login__brand--scene.is-static { min-height: 0; }
.aj-login__brand--scene.is-static::before { display: none; }
@media (max-width: 980px) { .aj-login__brand--scene { min-height: 560px; } .aj-login__brand--scene .aj-hq-top h1 { font-size: 30px; } }
@media (max-width: 520px) { .aj-login__brand--scene { padding: 32px 24px; min-height: 560px; } .aj-login__brand--scene .aj-hq-canvas { top: 235px; bottom: 100px; } }
@media (prefers-reduced-motion: reduce) { .aj-login__brand--scene .aj-hq-canvas { transition: none; } }
