/* Kensington splash (served at /kensington/splash.css; injected into /login and /app by nginx).
   Frappe shows .splash on the login page right after "Logged In" (while the server builds the desk) and again on /app
   until the desk is ready -> the same look on both. Logo 150 px (+50%), gold ring orbiting it, tagline after the logo. */
/* ---------- 1. splash ---------- */
.splash {
  position: fixed !important; inset: 0; top: 0 !important; left: 0 !important; transform: none !important;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 56px;
  background: #fff; z-index: 2000;
}
.splash img {
  max-width: 150px !important; max-height: 150px !important; width: 150px; height: auto;
  opacity: 0; transform: scale(.86);
  animation: ken-logo-in .7s cubic-bezier(.2, .8, .2, 1) forwards, ken-breathe 2.4s ease-in-out .8s infinite;
}
/* gold ring around the logo: a faint full circle with a bright arc travelling round it */
.splash::before {
  content: ""; position: absolute; left: 50%; top: calc(50% - 39px);   /* = centre of the 150x119 logo above the tagline */
  width: 200px; height: 200px; margin: -100px 0 0 -100px; border-radius: 50%;
  border: 2px solid rgba(184, 149, 94, .16); border-top-color: #B8955E; border-right-color: rgba(184, 149, 94, .55);
  opacity: 0; animation: ken-fade .25s ease forwards, ken-spin 1.3s linear infinite;
}
.splash::after {
  content: "A Future of Prosperity With Vietnam";
  font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 17px; letter-spacing: .04em;
  color: #8A6A3B; text-align: center; padding: 0 16px;
  opacity: 0; transform: translateY(8px); animation: ken-tag-in .7s ease .55s forwards;
}
@keyframes ken-logo-in { to { opacity: 1; transform: scale(1); } }
@keyframes ken-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes ken-spin { to { transform: rotate(360deg); } }
@keyframes ken-fade { to { opacity: 1; } }
@keyframes ken-tag-in { to { opacity: 1; transform: none; } }
/* arriving from the login page (which already showed the intro): continue without replaying it */
.ken-cont .splash img { opacity: 1; transform: none; animation: ken-breathe 2.4s ease-in-out infinite; }
.ken-cont .splash::before { opacity: 1; animation: ken-spin 1.3s linear infinite; }
.ken-cont .splash::after { opacity: 1; transform: none; animation: none; }
@media (prefers-reduced-motion: reduce) {   /* keep the ring (it is the loading indicator), drop the rest */
  .splash img, .splash::after { animation: ken-fade .3s ease forwards; transform: none; }
}

