/* Broad, curved reflections sit behind the entrance and the form, outside the logo. */
@media screen {
  html[data-sadat-ui] body.luxury-login {
    isolation:isolate;
    --auth-ground:#061122;
    --auth-shade:#091e37;
    --auth-alloy:22 114 181;
    --auth-rim:114 234 255;
    --auth-foil:184 212 235;
    --auth-glaze:.76;
  }
  html[data-sadat-ui][data-palette="champagne"] body.luxury-login {
    --auth-ground:#16100c; --auth-shade:#30200f; --auth-alloy:161 108 45;
    --auth-rim:252 203 116; --auth-foil:248 228 198;
  }
  html[data-sadat-ui][data-palette="platinum"] body.luxury-login {
    --auth-ground:#10151c; --auth-shade:#222e39; --auth-alloy:93 118 140;
    --auth-rim:211 231 245; --auth-foil:239 244 248;
  }
  html[data-sadat-ui][data-theme="light"] body.luxury-login {
    --auth-ground:#ecf2f8; --auth-shade:#d3e2ef; --auth-alloy:76 132 179;
    --auth-rim:34 127 166; --auth-foil:255 255 255; --auth-glaze:.68;
  }
  html[data-sadat-ui][data-palette="champagne"][data-theme="light"] body.luxury-login {
    --auth-ground:#f6efe1; --auth-shade:#e4d6bd; --auth-alloy:173 140 87; --auth-rim:152 101 28;
  }
  html[data-sadat-ui][data-palette="platinum"][data-theme="light"] body.luxury-login {
    --auth-ground:#eff2f5; --auth-shade:#d5dfe6; --auth-alloy:111 132 151; --auth-rim:70 98 119;
  }
  html[data-sadat-ui][data-palette][data-theme] body.luxury-login:not(.print-mode) :is(.ambient,.gateway-vignette) {
    overflow:hidden; pointer-events:none;
    background:
      radial-gradient(ellipse at 7% 98%,rgb(var(--auth-alloy) / .24),transparent 51%),
      radial-gradient(ellipse at 94% 8%,rgb(var(--auth-alloy) / .19),transparent 48%),
      linear-gradient(132deg,var(--auth-shade),var(--auth-ground) 49%,var(--auth-shade));
  }
  html[data-sadat-ui][data-palette] body.luxury-login:not(.print-mode) .ambient { z-index:-1; }
  html[data-sadat-ui][data-palette] body.luxury-login:not(.print-mode) .gateway-vignette {
    /* Let the existing split-door exit retain its edge and depth. */
    opacity:.95;
  }
  html[data-sadat-ui][data-palette] body.luxury-login.is-entering:not(.print-mode) .gateway-vignette { opacity:0; }
  html[data-sadat-ui][data-palette] body.luxury-login:not(.print-mode) :is(.ambient,.gateway-vignette)::before,
  html[data-sadat-ui][data-palette] body.luxury-login:not(.print-mode) :is(.ambient,.gateway-vignette)::after {
    content:""; display:block; position:absolute; inset:-8%; pointer-events:none;
    opacity:var(--auth-glaze); transform-origin:center; animation:none;
  }
  html[data-sadat-ui][data-palette] body.luxury-login:not(.print-mode) :is(.ambient,.gateway-vignette)::before {
    background:
      radial-gradient(ellipse 112% 136% at 119% -29%,
        transparent 52%,rgb(var(--auth-alloy) / .12) 55%,rgb(var(--auth-alloy) / .34) 59%,
        rgb(var(--auth-rim) / .25) 61.1%,rgb(var(--auth-foil) / .53) 61.45%,
        rgb(var(--auth-alloy) / .31) 61.95%,rgb(0 0 0 / .15) 63.4%,
        transparent 65%,rgb(var(--auth-rim) / .19) 66.15%,transparent 66.45%),
      radial-gradient(ellipse 106% 128% at 121% -22%,transparent 62.8%,
        rgb(var(--auth-foil) / .16) 63.15%,transparent 63.45%);
  }
  html[data-sadat-ui][data-palette] body.luxury-login:not(.print-mode) :is(.ambient,.gateway-vignette)::after {
    background:
      radial-gradient(ellipse 100% 131% at -30% 131%,
        transparent 54%,rgb(var(--auth-alloy) / .21) 59.1%,rgb(var(--auth-rim) / .34) 62.4%,
        rgb(var(--auth-foil) / .45) 62.8%,rgb(var(--auth-alloy) / .16) 63.4%,
        transparent 65.2%,rgb(var(--auth-rim) / .18) 66.5%,transparent 66.85%),
      radial-gradient(ellipse 108% 128% at -35% 132%,transparent 67.2%,
        rgb(var(--auth-foil) / .11) 67.6%,transparent 67.9%);
  }
  /* The image files already contain the original bezel and transparent corners. */
  html[data-sadat-ui][data-palette] body.luxury-login:not(.print-mode) .brand-stage > .sadat-motion-layer,
  html[data-sadat-ui][data-palette] body.luxury-login:not(.print-mode) :is(.wordmark,.emblem-stage,.emblem-float,.emblem-surface,.sadat-logo-frame,.gem-trigger)::after,
  html[data-sadat-ui][data-palette] body.luxury-login:not(.print-mode) :is(.jewel-recess,.jewel-gloss,.jewel-aura,.emblem-glint) {
    display:none!important;
  }
  html[data-sadat-ui][data-palette] body.luxury-login:not(.print-mode) :is(.emblem-float,.emblem-surface,.sadat-logo-frame,.gem-trigger),
  html[data-sadat-ui][data-palette] body.luxury-login:not(.print-mode) :is(.emblem-float,.emblem-surface,.sadat-logo-frame,.gem-trigger):hover {
    background:transparent; border:0; box-shadow:none; filter:none;
    transform:none!important; animation:none!important; transition:none; backface-visibility:visible;
  }
  html[data-sadat-ui][data-palette] body.luxury-login:not(.print-mode) .sadat-logo-frame > img {
    border:0; border-radius:0; box-shadow:none; background:transparent; filter:none;
  }
  html[data-sadat-ui][data-palette] body.luxury-login:not(.print-mode) .emblem-surface { transform-style:flat; }
  html[data-sadat-ui][data-palette] body.luxury-login:not(.print-mode) .gem-trigger { overflow:visible; }
  /* Keep the entrance motion control clear of the fixed credits along the bottom. */
  html[data-sadat-ui][data-palette] body.luxury-login:not(.print-mode) .gem-gateway .gateway-motion {
    inset:auto; inset-block-start:max(12px,env(safe-area-inset-top)); inset-inline-start:clamp(14px,4vw,52px);
    z-index:4; transform:none; margin:0;
  }
  html[data-sadat-ui][data-palette] body.luxury-login:not(.print-mode) :is(.wordmark,.gem-trigger):focus-visible {
    outline:2px solid var(--sadat-accent); outline-offset:5px;
  }
}
@media screen and (prefers-reduced-motion:no-preference) {
  html[data-sadat-ui][data-palette][data-motion="on"] body.luxury-login:not(.motion-paused,.ambient-suspended,.print-mode) :is(.ambient,.gateway-vignette)::before {
    animation:sadat-auth-fold-near 19s ease-in-out infinite alternate;
  }
  html[data-sadat-ui][data-palette][data-motion="on"] body.luxury-login:not(.motion-paused,.motion-economy,.ambient-suspended,.print-mode) :is(.ambient,.gateway-vignette)::after {
    animation:sadat-auth-fold-far 26s ease-in-out infinite alternate;
  }
  html[data-sadat-ui][data-palette][data-motion="on"] body.luxury-login.has-entrance .ambient::before,
  html[data-sadat-ui][data-palette][data-motion="on"] body.luxury-login.has-entrance .ambient::after {
    animation-play-state:paused;
  }
}
@keyframes sadat-auth-fold-near {
  from { transform:translate3d(-3%,1%,0) rotate(-2deg); }
  to { transform:translate3d(3%,-2%,0) rotate(2deg); }
}
@keyframes sadat-auth-fold-far {
  from { transform:translate3d(2%,-1%,0) rotate(1.5deg); }
  to { transform:translate3d(-2%,2%,0) rotate(-1.5deg); }
}
