/* Welcome Back Splash
 * Standalone styles copied from the Portal do Aluno composition and scoped
 * under the component root so the login form stays untouched.
 */
#welcome-back-screen.wb-splash {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow: hidden;
  background: #fafaf8;
  color: #111;
  font-family: 'Plus Jakarta Sans', 'DM Sans', system-ui, sans-serif;
}

#welcome-back-screen.wb-splash.is-visible {
  display: flex;
}

.wb-splash .wb-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 680px 560px at 50% 48%, rgba(241, 210, 75, .19) 0%, rgba(241, 210, 75, .06) 45%, transparent 73%);
  animation: wbFade 1.1s ease both;
}

.wb-splash .wb-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(241, 210, 75, .11);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: wbFade 1s ease .25s both;
}

.wb-splash .wb-ring-1 {
  width: 480px;
  height: 480px;
  border-width: 1.5px;
  border-color: rgba(241, 210, 75, .14);
}

.wb-splash .wb-ring-2 {
  width: 680px;
  height: 680px;
  animation-delay: .4s;
}

.wb-splash .wb-mascot-col {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42%;
  padding-top: 24px;
  animation: wbFade .85s cubic-bezier(.16, 1, .3, 1) .12s both;
  z-index: 1;
}

.wb-splash .wb-mascot-stage {
  position: relative;
  width: 400px;
  height: 440px;
}

.wb-splash .wb-mascot {
  position: absolute;
  left: 14px;
  top: 62px;
  width: 360px;
  height: 360px;
  pointer-events: none;
  line-height: 0;
}

.wb-splash .wb-mascot svg {
  display: block;
  width: 100%;
  height: 100%;
}

.wb-splash .wb-mascot-fallback {
  display: block;
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.wb-splash .wb-mascot-shadow {
  position: absolute;
  left: 72px;
  bottom: 6px;
  width: 250px;
  height: 20px;
  border-radius: 50%;
  background: rgba(98, 81, 12, .12);
  filter: blur(11px);
}

.wb-splash .wb-bubble {
  position: absolute;
  top: 12px;
  right: 8px;
  z-index: 1;
  padding: 11px 17px;
  border: 1.5px solid #ece8d8;
  border-radius: 18px 18px 18px 4px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(54, 47, 12, .08);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.3px;
  animation: wbMascotFloat 3.3s ease-in-out 1.1s infinite;
  white-space: nowrap;
}

.wb-splash .wb-bubble-tail {
  position: absolute;
  bottom: -8px;
  left: 18px;
  width: 15px;
  height: 15px;
  background: #fff;
  border-right: 1.5px solid #ece8d8;
  border-bottom: 1.5px solid #ece8d8;
  transform: skewY(-35deg) rotate(33deg);
}

.wb-splash .wb-center {
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  align-items: flex-start;
  max-width: 620px;
  padding: 0 60px 0 10px;
  text-align: left;
  z-index: 1;
}

.wb-splash .wb-logo {
  position: absolute;
  top: 36px;
  left: 48px;
  z-index: 2;
  width: auto;
  height: 26px;
  margin: 0;
  opacity: .5;
  animation: wbFadeLogoLeft .7s cubic-bezier(.16, 1, .3, 1) .28s both;
}

.wb-splash .wb-greeting {
  margin: 0 0 10px;
  color: #a8a29e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
  animation: wbFade .65s ease .42s both;
}

.wb-splash .wb-title {
  margin: 0;
  color: #111;
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: -2.8px;
  line-height: 1.03;
  animation: wbFade .7s ease .52s both;
}

.wb-splash .wb-subtitle {
  max-width: 420px;
  margin: 18px 0 0;
  color: #78716c;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  animation: wbFade .7s ease .62s both;
}

.wb-splash .wb-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  animation: wbFade .7s ease .72s both;
}

.wb-splash .wb-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border: 1px solid #fde68a;
  border-radius: 10px;
  background: #fffbeb;
  color: #a98200;
}

.wb-splash .wb-status > span:last-child {
  color: #78716c;
  font-size: 11px;
  font-weight: 700;
}

@keyframes wbFade {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes wbFadeLogoLeft {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: .5; transform: translateY(0); }
}

@keyframes wbMascotFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-7px) rotate(2deg); }
}

@media (prefers-reduced-motion: reduce) {
  #welcome-back-screen.wb-splash *,
  #welcome-back-screen.wb-splash *::before,
  #welcome-back-screen.wb-splash *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 900px) {
  #welcome-back-screen.wb-splash {
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
  }

  .wb-splash .wb-mascot-col {
    flex: 0 0 auto;
    padding-top: 64px;
  }

  .wb-splash .wb-mascot-stage {
    width: 230px;
    height: 240px;
  }

  .wb-splash .wb-mascot {
    left: 15px;
    top: 36px;
    width: 200px;
    height: 200px;
  }

  .wb-splash .wb-mascot-shadow {
    left: 45px;
    width: 140px;
  }

  .wb-splash .wb-bubble {
    top: 0;
    right: -22px;
    padding: 8px 13px;
    font-size: 13px;
  }

  .wb-splash .wb-center {
    align-items: center;
    padding: 0 20px 48px;
    text-align: center;
  }

  .wb-splash .wb-logo {
    top: 20px;
    left: 20px;
    height: 22px;
    transform: none;
    animation-name: wbFadeLogoLeft;
  }

  .wb-splash .wb-status {
    justify-content: center;
  }

  .wb-splash .wb-title {
    font-size: 42px;
    letter-spacing: -1.8px;
  }
}

@media (max-width: 900px) and (max-height: 640px) {
  .wb-splash .wb-mascot-col {
    display: none;
  }

  .wb-splash .wb-center {
    padding-top: 32px;
  }
}

@media (max-width: 420px) {
  .wb-splash .wb-bubble {
    right: -10px;
  }

  .wb-splash .wb-title {
    font-size: 36px;
  }

  .wb-splash .wb-subtitle {
    font-size: 14px;
  }
}