body.corpo-login {
  display: block;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.tela-login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.painel-login {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 70px;
  background: var(--branco);
}

.conteudo-login {
  width: 100%;
  max-width: 440px;
  animation: entrada-login 0.65s ease forwards;
}

@keyframes entrada-login {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

.logo-login-img {
  width: 200px;
  height: auto;
  display: block;
  margin: 0 auto 30px;
}

.titulo-login {
  margin: 0 0 6px;
  font-family: var(--fonte-titulo);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--texto-escuro);
  text-align: center;
}

.subtitulo-login {
  margin: 0 0 28px;
  color: var(--texto-cinza);
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
}

.campo-login {
  margin-bottom: 20px;
}

.campo-login label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--texto-escuro);
}

.campo-login input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--borda);
  border-radius: 10px;
  background: var(--branco);
  color: var(--texto-escuro);
  font-family: var(--fonte-texto);
  font-size: 0.9rem;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.campo-login input::placeholder {
  color: #9CA3AF;
}

.campo-login input:focus {
  border-color: var(--rosa);
  box-shadow: 0 0 0 3px rgba(240, 128, 140, 0.12);
  transform: translateY(-1px);
}

.label-senha {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.label-senha label {
  margin-bottom: 7px;
}

.link-esqueci {
  margin-bottom: 7px;
  color: var(--verde-escuro);
  font-size: 0.75rem;
  font-weight: 600;
}

.link-esqueci:hover {
  color: var(--rosa-escuro);
}

.campo-senha {
  position: relative;
}

.campo-senha input {
  padding-right: 45px;
}

.botao-olho-login {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  opacity: 0.55;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.botao-olho-login:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.08);
}

.mensagem-erro {
  display: block;
  margin-top: 5px;
  min-height: 0;
  color: #E03A3A;
  font-size: 0.72rem;
}

.campo-login.campo-erro input {
  border-color: #E03A3A;
  box-shadow: 0 0 0 3px rgba(224, 58, 58, 0.09);
  animation: tremer-login 0.3s ease;
}

@keyframes tremer-login {
  0% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-4px);
  }

  50% {
    transform: translateX(4px);
  }

  75% {
    transform: translateX(-3px);
  }

  100% {
    transform: translateX(0);
  }
}

.lembrar-login {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 22px;
  color: var(--texto-cinza);
  font-size: 0.8rem;
  cursor: pointer;
}

.lembrar-login input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--verde);
}

.btn-entrar {
  margin-bottom: 16px;
}

.divisor-login {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 3px 0 16px;
}

.divisor-login span {
  flex: 1;
  height: 1px;
  background: var(--borda);
}

.divisor-login p {
  margin: 0;
  color: var(--texto-cinza);
  font-size: 0.72rem;
}

.btn-google {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--borda);
  border-radius: 14px;
  background: var(--branco);
  color: var(--texto-escuro);
  font-family: var(--fonte-texto);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-google:hover {
  background: #FAFAFA;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
}

.btn-google:active {
  transform: scale(0.98);
}

.icone-google {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #4285F4;
}

.texto-cadastro {
  margin: 22px 0 0;
  text-align: center;
  color: var(--texto-cinza);
  font-size: 0.85rem;
}

.texto-cadastro a {
  color: var(--verde-escuro);
  font-weight: 600;
}

.texto-cadastro a:hover {
  color: var(--rosa-escuro);
}

.painel-visual-login {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(
      145deg,
      var(--rosa) 0%,
      #F49AA3 45%,
      var(--amarelo) 100%
    );
}

.painel-visual-login::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  top: -100px;
  right: -100px;
}

.painel-visual-login::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  bottom: -100px;
  left: -80px;
}

.logo-marca-login {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.imagem-login {
  width: min(75%, 430px);
  max-height: 70vh;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 18px 35px rgba(0, 0, 0, 0.15));
  animation: imagem-login-flutuando 4s ease-in-out infinite;
}

@keyframes imagem-login-flutuando {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }

  100% {
    transform: translateY(0);
  }
}

.btn-entrar.botao-enviando {
  opacity: 0.8;
  cursor: wait;
  animation: pulsar-login 1s ease-in-out infinite;
}

@keyframes pulsar-login {
  0% {
    box-shadow: 0 6px 16px rgba(240, 128, 140, 0.20);
  }

  50% {
    box-shadow: 0 8px 25px rgba(240, 128, 140, 0.40);
  }

  100% {
    box-shadow: 0 6px 16px rgba(240, 128, 140, 0.20);
  }
}

.btn-entrar.login-sucesso {
  background: linear-gradient(135deg, var(--verde), var(--verde-escuro));
  animation: sucesso-login 0.45s ease;
}

@keyframes sucesso-login {
  0% {
    transform: scale(0.96);
  }

  60% {
    transform: scale(1.03);
  }

  100% {
    transform: scale(1);
  }
}

@media (max-width: 900px) {
  body.corpo-login {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .tela-login {
    grid-template-columns: 1fr;
  }

  .painel-visual-login {
    order: -1;
    min-height: 230px;
  }

  .imagem-login {
    width: 250px;
    max-height: 190px;
  }

  .painel-login {
    padding: 40px 25px 50px;
  }
}

@media (max-width: 480px) {
  .painel-visual-login {
    min-height: 190px;
  }

  .imagem-login {
    width: 210px;
  }

  .painel-login {
    padding: 32px 20px 40px;
  }

  .logo-login-img {
    width: 160px;
    margin-bottom: 24px;
  }

  .titulo-login {
    font-size: 1.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .conteudo-login,
  .imagem-login,
  .btn-entrar.botao-enviando,
  .btn-entrar.login-sucesso {
    animation: none;
  }
}
/* Ajustes finais para telas estreitas */
@media (max-width: 600px) {
  html, body { width: 100%; max-width: 100%; min-width: 0; }
  body { overflow-x: hidden; }
  .tela-login, .tela-cadastro, .tela-esqueci, .tela-senha-redefinida,
  .painel-login, .painel-form, .painel-esqueci, .painel-senha-redefinida,
  .painel-visual, .painel-visual-login, .painel-visual-esqueci,
  .painel-visual-redefinida, .container, .pagina-profissional,
  .card-profissional, form {
    width: 100%; max-width: 100%; min-width: 0;
  }
  .tela-login, .tela-cadastro, .tela-esqueci, .tela-senha-redefinida {
    grid-template-columns: minmax(0, 1fr);
  }
  input, select, textarea, button { max-width: 100%; }
  input, select, textarea { min-width: 0; font-size: 16px; }
  img, svg { max-width: 100%; }
  button, a { overflow-wrap: anywhere; }
}

@media (max-width: 380px) {
  .painel-login, .painel-form, .painel-esqueci, .painel-senha-redefinida,
  .card-profissional { padding-left: 14px; padding-right: 14px; }
}
