@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 .destaque {
  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;
  justify-content: flex-start;
  align-items: center;
  padding: 2.5rem 2rem;
  overflow-y: auto;
}

.login-direita__logo-container {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-direita__logo {
  width: 140px;
  height: auto;
}

.login-direita__titulo {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, #32c26d 0%, #0ab7fb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.login-direita__titulo-base {
  color: #1a1a1a;
  -webkit-text-fill-color: #1a1a1a;
}

.login-direita__titulo--destaque {
  color: inherit;
}

.login-direita__subtitulo {
  color: #5a5a5a;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.login-form {
  width: 100%;
  max-width: 400px;
  margin-bottom: 1rem;
}

.login-form__campo {
  margin-bottom: 1rem;
  gap: 120px;
}

.login-form__label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #333;
}

.login-form__senha-cabecalho {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.login-form__esqueci-senha {
  font-size: 0.8rem;
  padding-left: 100px;
  color: #4caf50;
  text-decoration: none;
}

.login-form__esqueci-senha:hover {
  text-decoration: underline;
}

.login-form__input-wrapper {
  position: relative;
}

.login-form__input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
}

.login-form__input:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.login-form__toggle-senha {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
}

.login-form__erro {
  color: #ff4444;
  font-size: 0.8rem;
  margin-top: 0.3rem;
  display: none;
}

.login-form__btn-entrar {
  width: 100%;
  padding: 0.9rem;
  background: linear-gradient(90deg, #79d836 0%, #0ab7fb 100%);
  color: white;
  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.3);
}

.login-form__btn-entrar:hover {
  background: linear-gradient(90deg, #32c26d 0%, #1d8ec9 100%);
  color: white;
}

.login-criar-conta__link {
  color: #0ab7fb;
  text-decoration: none;
  font-weight: 500;
}

.login-criar-conta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.login-divisor {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 400px;
  margin: 0.8rem 0;
}
.login-divisor__linha {
  flex: 1;
  height: 1.5px;
  background: black;
}

.login-divisor__texto {
  padding: 0 0.5rem;
  color: black;
  font-size: 0.85rem;
}

.login-google {
  width: 100%;
  max-width: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: none;
  margin-bottom: 1rem;
  -webkit-appearance: none;
  appearance: none;
  font-size: 0.95rem;
  color: #333;
  font-weight: 500;
}

.login-google img {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
}

.login-google:hover {
  opacity: 0.7;
}

@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;
    padding-bottom: 0;
    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: 3.5rem 1.5rem 2.5rem;
    margin-top: -50px;
    background: #fff;
    border-radius: 0;
    position: relative;
    z-index: 1;
    overflow-y: visible;
    align-items: stretch;
  }

  .login-direita__logo-container {
    display: none;
  }

  .login-direita__titulo {
    font-size: 1.5rem;
    text-align: center;
  }

  .login-direita__titulo--destaque {
    color: #1a1a1a;
    -webkit-text-fill-color: #1a1a1a;
  }

  .login-direita__subtitulo {
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .login-form,
  .login-divisor,
  .login-google {
    max-width: 100%;
  }

  .login-form__campo {
    gap: 0;
  }

  .login-form__esqueci-senha {
    padding-left: 0;
  }

  .login-form__esqueci-senha,
  .login-criar-conta__link {
    color: #0ab7fb;
  }

  .login-form__btn-entrar {
    border-radius: 12px;
  }

  .login-google {
    border-radius: 12px;
  }
}

.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;
}

.tradutor:hover {
  background: #f5f7fa;
}

.login-direita {
  position: relative;
}

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