@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-8px);
  }
  75% {
    transform: translateX(8px);
  }
}
.login-form__input--erro {
  border-color: #ff4444 !important;
  animation: shake 0.4s ease-in-out !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

* {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.pagina-login {
  display: flex;
  height: 100vh;
}

.login-esquerda {
  width: 50%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    #1d8ec9 0%,
    #0ab7fb 45%,
    #79d836 75%,
    #32c26d 100%
  );
  display: flex;
  flex-direction: column;
}

.login-esquerda__geometria {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.55;
  background-image: url("/img/padrao-triangulos-bixuco.svg");
  background-size: cover;
  background-position: center;
}

.login-esquerda__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.15);
  z-index: 2;
}

.login-esquerda__conteudo {
  position: relative;
  z-index: 3;
  padding: 3.5rem 3rem 0 8rem;
  color: #f5f7fa;
  text-align: left;
  max-width: 480px;
}

.login-esquerda__logo {
  display: block;
  width: 130px;
  height: auto;
  margin-bottom: 2.5rem;
}

.login-esquerda__titulo {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.login-esquerda__titulo span {
  color: #79d836;
}

.login-esquerda__slogan {
  font-size: 1rem;
  color: #f5f7fa;
  line-height: 1.6;
  font-weight: 500;
  max-width: 380px;
}

.login-esquerda__foto {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: contain;
}

.login-esquerda__ilustracao-wrapper {
  position: relative;
  z-index: 3;
  margin-top: auto;
  padding: 0 3rem 2rem 8rem;
}

.login-direita {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  overflow-y: auto;
  position: relative;
}

.tradutor {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #0ab7fb;
  cursor: pointer;
  z-index: 4;
}

.tradutor:hover {
  background: #f5f7fa;
}

@media (max-width: 768px) {
  .tradutor {
    top: 1rem;
    right: 1rem;
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }
}

.criarconta-header {
  text-align: center;
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.criarconta-header__logo {
  display: block;
  height: 40px;
  width: auto;
  margin: 0 auto 1rem;
}

.criarconta-titulo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #141414;
}

.criarconta-corpo {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
}

.cadastro-progresso {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  max-width: 400px;
  margin-bottom: 2rem;
}

.cadastro-progresso span {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: #d9d9d9;
  transition:
    background 0.3s ease,
    opacity 0.3s ease;
}

.cadastro-progresso span.ativo {
  background: #0ab7fb;
  opacity: 0.7;
}

.cadastro-progresso span.ativo--recente {
  opacity: 1;
  transform-origin: left;
  animation: preencherBarra 0.5s ease forwards;
}

@keyframes preencherBarra {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.criarconta-pergunta {
  font-size: 1.1rem;
  font-weight: 600;
  color: #141414;
  text-align: center;
  margin-bottom: 0.4rem;
}

.criarconta-ajuda {
  font-size: 0.85rem;
  color: #5a5a5a;
  text-align: center;
  margin-bottom: 1.5rem;
}

.tipo-container {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.tipo-card {
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tipo-card:hover {
  border-color: #0ab7fb;
  background: #d9d9d9;
}

.tipo-card--ativo {
  border-color: #32c26d;
  box-shadow: 0 0 0 2px rgba(50, 194, 109, 0.2);
}

.tipo-card__titulo {
  font-size: 1rem;
  font-weight: 700;
  color: #141414;
  margin-bottom: 0.3rem;
}

.tipo-card__descricao {
  font-size: 0.85rem;
  color: #5a5a5a;
  line-height: 1.4;
}

.tag-crp {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.3rem 0.7rem;
  background: #cdeffb;
  color: #0a7ca8;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
}

.erro-selecao {
  width: 100%;
  max-width: 400px;
  color: #ff4444;
  font-size: 0.85rem;
  text-align: center;
  margin-bottom: 1rem;
}

.btn-continuar {
  width: 100%;
  max-width: 400px;
  padding: 0.9rem;
  background: linear-gradient(90deg, #79d836 0%, #0ab7fb 100%);
  color: #fff;
  border: none;
  border-radius: 15px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.btn-continuar:hover {
  background: linear-gradient(90deg, #32c26d 0%, #1d8ec9 100%);
}

.btn-continuar:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.login-direita__rodape {
  font-size: 0.9rem;
  color: #5a5a5a;
  text-align: center;
}

.login-direita__link {
  color: #0ab7fb;
  font-weight: 600;
  text-decoration: none;
}

.login-direita__link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  html,
  body {
    overflow-y: auto;
    height: auto;
  }

  .pagina-login {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  .login-esquerda {
    width: 100%;
    min-height: 300px;
    clip-path: ellipse(85% 90% at 50% 0%);
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .login-esquerda__conteudo {
    padding: 1.5rem 1.5rem 0;
    text-align: center;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .login-esquerda__logo {
    width: 110px;
    margin: 0 auto 0.5rem;
  }

  .login-esquerda__titulo,
  .login-esquerda__slogan {
    display: none;
  }

  .login-esquerda__ilustracao-wrapper {
    margin-top: 0;
    margin-bottom: 17px;
    padding: 0 1.5rem 0;
    display: flex;
    justify-content: center;
  }

  .login-esquerda__foto {
    max-width: 210px;
  }

  .login-direita {
    width: 100%;
    padding: 2rem 1.5rem 2.5rem;
    margin-top: -50px;
    background: #fff;
    border-radius: 0;
    position: relative;
    z-index: 1;
    overflow-y: visible;
  }

  .criarconta-header {
    border-bottom: none;
    padding: 1rem 0 0;
    text-align: center;
  }

  .criarconta-titulo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
  }

  .criarconta-corpo {
    padding: 0;
    align-items: stretch;
  }

  .cadastro-progresso {
    margin: 1.2rem 0 1.5rem;
    max-width: 100%;
  }

  .criarconta-pergunta {
    max-width: 100%;
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
  }

  .criarconta-ajuda {
    margin-bottom: 1.5rem;
  }

  .tipo-container {
    max-width: 100%;
  }

  .tipo-card {
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
  }

  .erro-selecao {
    max-width: 100%;
  }

  .btn-continuar {
    max-width: 100%;
    border-radius: 12px;
  }
}
