/*
 * Splash screen da marca Smart (des.netlab.com.br). Carregado depois do splash.css, que traz todas as
 * animações e tempos; aqui só muda o que depende do desenho do logo "Smart" (posições e o "S").
 * O "S" faz o papel do "i" do iMais e o traço do "t" o papel do "+".
 */

/* fundo do login Smart (o mesmo do login-smart.css) numa camada própria, pelo mesmo motivo do splash.css */
body::before {
  background:
    linear-gradient(rgba(6, 14, 36, 0.25), rgba(6, 14, 36, 0.45)),
    url('../../img/smart/fundo-estabelecimento.svg') center bottom / cover no-repeat;
}

/* o "S" é mais longo que a haste do "i": desenha em .8s (recolhe no mesmo tempo do iMais) */
.splash--smart .splash__istem { animation-duration: .8s, .38s; }

/* brilho: o logo Smart é 1,224x mais largo em unidades do desenho */
.splash--smart .splash__shine-band { animation-name: splash-shine-smart; }
@keyframes splash-shine-smart { to { transform: translateX(759px); } }

/* o "S" (já recolhido na bolinha) vai ao centro da tela */
.splash--smart .splash__icenter { animation-name: splash-icenter-smart; }
@keyframes splash-icenter-smart { to { transform: translate(152px, 52.3px); } }

/* a bolinha amassa, salta, incha e estoura (mesmo movimento do iMais, na escala deste logo) */
.splash--smart .splash__dot { animation-name: splash-pop, splash-dot-vanish-smart; }
@keyframes splash-dot-vanish-smart {
  0% { transform: scale(1); opacity: 1; }
  30% { transform: translateY(2.4px) scale(1.32, .7); }
  55% { transform: translateY(-11px) scale(.8, 1.24); }
  72% { transform: translateY(-7.3px) scale(1.55); opacity: 1; }
  100% { transform: translateY(-7.3px) scale(0); opacity: 0; }
}

/* movimento reduzido: só o logo parado (as regras acima não podem religar as animações) */
.splash-reduced .splash--smart .splash__dot,
.splash-reduced .splash--smart .splash__icenter,
.splash-reduced .splash--smart .splash__shine-band { animation: none; }
