* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Poppins', sans-serif;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f5f7;
}

.login-card {
  width: 100%;
  max-width: 1300px;
  min-height: 768px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,.08);
}

.login-left {
  padding: 80px;
  display: flex;
  flex-direction: column;
}

.logo {
  font-weight: 800;
  font-size: 28px;
  margin-bottom: 22px;
  margin-top: 16px;
}
.logo img {
  width: 156px;
}


.logo span {
  font-weight: 400;
  margin-left: 4px;
}

h1 {
  font-size: 32px;
  margin-bottom: 8px;
}

.subtitle {
  color: #777;
  margin-bottom: 32px;
}

form label {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  margin-bottom: 20px;
}

form input {
  margin-top: 6px;
  padding: 14px 14px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.forgot {
  text-align: right;
  margin-bottom: 24px;
}

.forgot a {
  font-size: 14px;
  color: #6b5cff;
  text-decoration: none;
}

button {
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, #8979F3 0%, #5C45EE 100%);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
}

.signup {
  margin-top: auto;
  font-size: 14px;
}

.signup a {
  color: #6b5cff;
  text-decoration: none;
}

.login-right {
   position: relative;
  /* background: linear-gradient(160deg, #4b3fbf, #7c6cff); */
  background: linear-gradient(144deg, #5141B8 18.81%, #8777F3 99.07%);
  padding: 56px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: top;
  overflow: hidden;
}

.login-right-image {
  position: absolute;
  right: 32px;
  bottom: 32px;
  max-width: 50px;
  pointer-events: none; /* imagem não interfere no UX */
}

.badge {
  background-color: #332B62;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 12px;
  width: fit-content;
  margin-bottom: 12px;
  letter-spacing: 2.3px;
}

.login-right h2 {
  font-size: 50px;
  line-height: 1.1;
  letter-spacing: -1px;
  max-width: 340px;
}





/* .flow {
  position: relative;
  width: 100%;
  max-width: 1200px;
  padding: 36px 40px;
  margin-top: 50px;
} */
.flow {
  position: absolute;
  left: 50%;
  bottom: 100px; /* margem inferior desejada */
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  pointer-events: none; /* opcional: evita interferir no UX */
  padding: 25px;
}

.flow-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}



/* dots */
.dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}


.dots-top {
  top: 0;
}

.dots-bottom {
  bottom: 0;
}




.dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);

  animation: dotsReveal 6s ease-in-out infinite;

  /* máscara base */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 25%,
    black 75%,
    transparent 100%
  );
  -webkit-mask-size: 0% 100%;
  -webkit-mask-repeat: no-repeat;

  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 25%,
    black 75%,
    transparent 100%
  );
  mask-size: 0% 100%;
  mask-repeat: no-repeat;
}

@keyframes dotsReveal {
  0% {
    opacity: 0;
    -webkit-mask-size: 0% 100%;
    mask-size: 0% 100%;
  }

  30% {
    opacity: 1;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
  }

  70% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.dots-top {
  top: 0;
}

.dots-bottom {
  bottom: 0;

  /* inverte visualmente o sentido */
  transform: translateX(-50%) scaleX(-1);
}








/* itens principais */
.item {
  position: relative;
  width: 140px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item img {
  max-width: 100%;
  height: auto;
}

/* badge sync */
.cloud .badge {
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 44px;
}

/* arrows */
.arrow img {
  width: 60px;
  height: auto;
}

.cloud {
  animation: cloudReveal 1.4s cubic-bezier(.4,0,.2,1) forwards;

  /* máscara vertical */
  -webkit-mask-image: linear-gradient(
    to top,
    transparent 0%,
    black 40%,
    black 100%
  );
  -webkit-mask-size: 100% 0%;
  -webkit-mask-repeat: no-repeat;

  mask-image: linear-gradient(
    to top,
    transparent 0%,
    black 40%,
    black 100%
  );
  mask-size: 100% 0%;
  mask-repeat: no-repeat;
}

@keyframes cloudReveal {
  from {
    opacity: 0;
    transform: translateY(16px);
    -webkit-mask-size: 100% 0%;
    mask-size: 100% 0%;
  }

  to {
    opacity: 1;
    transform: translateY(0);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
  }
}


.arrow {
  animation: arrowReveal 1.2s cubic-bezier(.4,0,.2,1) forwards;
  animation-delay: 1.0s; /* começa após a cloud */

  /* máscara horizontal */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 35%,
    black 100%
  );
  -webkit-mask-size: 0% 100%;
  -webkit-mask-repeat: no-repeat;

  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 35%,
    black 100%
  );
  mask-size: 0% 100%;
  mask-repeat: no-repeat;
}

@keyframes arrowReveal {
  from {
    opacity: 0;
    transform: translateX(-12px);
    -webkit-mask-size: 0% 100%;
    mask-size: 0% 100%;
  }

  to {
    opacity: 1;
    transform: translateX(0);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
  }
}

.data {
  animation: cloudReveal 1.4s cubic-bezier(.4,0,.2,1) forwards;
   animation-delay: 1.5s; /* começa após a cloud */


  /* máscara vertical */
  -webkit-mask-image: linear-gradient(
    to top,
    transparent 0%,
    black 40%,
    black 100%
  );
  -webkit-mask-size: 100% 0%;
  -webkit-mask-repeat: no-repeat;

  mask-image: linear-gradient(
    to top,
    transparent 0%,
    black 40%,
    black 100%
  );
  mask-size: 100% 0%;
  mask-repeat: no-repeat;
}

@keyframes cloudReveal {
  from {
    opacity: 0;
    transform: translateY(16px);
    -webkit-mask-size: 100% 0%;
    mask-size: 100% 0%;
  }

  to {
    opacity: 1;
    transform: translateY(0);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
  }
}

.arrow2 {
  animation: arrowReveal 1.2s cubic-bezier(.4,0,.2,1) forwards;
  animation-delay: 2s; /* começa após a cloud */

  /* máscara horizontal */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 35%,
    black 100%
  );
  -webkit-mask-size: 0% 100%;
  -webkit-mask-repeat: no-repeat;

  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 35%,
    black 100%
  );
  mask-size: 0% 100%;
  mask-repeat: no-repeat;
}

@keyframes arrowReveal {
  from {
    opacity: 0;
    transform: translateX(-12px);
    -webkit-mask-size: 0% 100%;
    mask-size: 0% 100%;
  }

  to {
    opacity: 1;
    transform: translateX(0);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
  }
}

.shield {
  animation: cloudReveal 1.4s cubic-bezier(.4,0,.2,1) forwards;
   animation-delay: 2.5s; /* começa após a cloud */


  /* máscara vertical */
  -webkit-mask-image: linear-gradient(
    to top,
    transparent 0%,
    black 40%,
    black 100%
  );
  -webkit-mask-size: 100% 0%;
  -webkit-mask-repeat: no-repeat;

  mask-image: linear-gradient(
    to top,
    transparent 0%,
    black 40%,
    black 100%
  );
  mask-size: 100% 0%;
  mask-repeat: no-repeat;
}

@keyframes cloudReveal {
  from {
    opacity: 0;
    transform: translateY(16px);
    -webkit-mask-size: 100% 0%;
    mask-size: 100% 0%;
  }

  to {
    opacity: 1;
    transform: translateY(0);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
  }
}

.typewriter {
  font-size: 50px;
  line-height: 1.1;
  font-weight: 600;
}

.cursor {
  display: inline-block;
  margin-left: 4px;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}


.typewriter span.char {
  display: inline-block;
  opacity: 0;
  transform: translateY(6px);
  animation: charFade 0.25s ease-out forwards;
}

@keyframes charFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.word {
  display: inline-block;
  white-space: nowrap;
}

.char {
  display: inline-block;
  opacity: 0;
  transform: translateY(6px);
  animation: charFade 0.25s ease-out forwards;
}

@keyframes charFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}











@media (max-width: 900px) {
  .login-card {
    grid-template-columns: 1fr;
  }

  .login-right {
    display: none;
  }
}
/* === Cole este bloco DEPOIS do seu CSS atual === */

/* Card principal: entrada simples */
.login-card {
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  animation: cc-card-in 0.6s ease-out forwards;
}

@keyframes cc-card-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Logomarca: queda suave */
.logo {
  opacity: 0;
  transform: translateY(-10px);
  animation: cc-drop-in 0.5s ease-out 0.15s forwards;
}

@keyframes cc-drop-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Inputs (lado esquerdo) via labels: stagger leve */
.login-left form label:nth-of-type(1),
.login-left form label:nth-of-type(2) {
  opacity: 0;
  transform: translateY(8px);
  animation: cc-fade-up 0.45s ease-out forwards;
}

.login-left form label:nth-of-type(1) { animation-delay: 0.25s; }
.login-left form label:nth-of-type(2) { animation-delay: 0.33s; }

@keyframes cc-fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Micro realce no foco (opcional, simples e atraente) */
form input:focus {
  outline: none;
  border-color: #6b5cff;
  box-shadow: 0 0 0 4px rgba(107, 92, 255, 0.15);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
  transform: translateY(-1px);
}

/* Acessibilidade: reduz movimento */
@media (prefers-reduced-motion: reduce) {
  .login-card,
  .logo,
  .login-left form label:nth-of-type(1),
  .login-left form label:nth-of-type(2) {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}