/* ARQUIVO login\css\login.css */


@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap");

/* Estilos gerais */
body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

body * {
  box-sizing: border-box;
}

/* Fundo e layout principal da página de login */
.main-login {
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #1672d8, #a0c1f7);
}

.right-login {
  width: 50vw;
  display: flex;
  flex-direction: column; /* Em coluna: logo acima, login abaixo */
  justify-content: center;
  align-items: center;
}

/* Card do logo */
.card-logo {
  width: 80%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background-color: #1975da; /* Fundo azul */
  color: #fff; /* Cor do texto em branco */
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: -10px 10px 20px -5px rgba(0, 0, 0, 0.3),
    /* Sombra no lado esquerdo */ 10px 10px 20px -5px rgba(0, 0, 0, 0.3); /* Sombra no lado direito */
}

.logo-image {
  max-width: 80%; /* Garante que a imagem se ajuste ao contêiner */
  height: auto; /* Mantém a proporção original */
  border-radius: 10px; /* Arredonda levemente os cantos da imagem */
}

/* Card de login */
.card-login {
  width: 80%;
  display: flex;
  text-align: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
  background-color: #fff;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.5),
    -10px 10px 20px -5px rgba(0, 0, 0, 0.3),
    10px 10px 20px -5px rgba(0, 0, 0, 0.3);
}

/* Título da página */
.card-login > h2 {
  color: #1975da;
  font-weight: 800;
  font-size: 2rem; /* Define um tamanho maior para a fonte */
  margin: 0 0 20px 0;
}

/* Campo de texto */
.textfield {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
}

.textfield input {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  font-size: 1rem;
  box-sizing: border-box; /* input nao passar do div pai */
  transition: all 0.3s ease;
}

.textfield label {
  margin-bottom: 10px;
  color: #000000;
  font-size: 12pt;
}

/* Estilo do campo quando focado */
.textfield input:focus {
  border-color: #1975da;
  outline: none;
  box-shadow: 0 0 5px rgba(25, 117, 218, 0.5);
}

/* Botão de login */
.login-btn {
  width: 100%;
  padding: 15px;
  background-color: #1975da;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease; /* Adiciona transição para o transform */
  box-shadow: 0px 10px 10px -12px rgba(0, 0, 0, 0.5);
}

.mensagens-icon {
  color: #dc3545;
}

.login-btn:hover {
  background-color: #145da0;
}

.login-btn:active {
  transform: scale(0.98); /* Simula o efeito de pressionado */
  box-shadow: 0px 5px 10px -8px rgba(0, 0, 0, 0.5); /* Reduz a sombra ao clicar */
}

.password-wrapper {
  position: relative;
  width: 100%;
}

.password-wrapper input {
  width: 100%;
  padding-right: 40px; /* Espaço para o ícone */
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  cursor: pointer;
}

.toggle-password i {
  font-size: 1.2rem; /* Tamanho do ícone */
  color: #1975da; /* Cor do ícone */
}

/* Mensagem de erro */
/* Estilização para a mensagem de erro */
.error-message {
  color: #dc3545; /* Vermelho indicando erro */
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  padding: 10px;
  border-radius: 5px;
  font-size: 1rem;
  text-align: center;
  margin-bottom: 15px;
  width: 100%;
  box-sizing: border-box;
}

/* Estilo para o overlay de carregamento */
/* Estilo para o overlay de carregamento */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1672d8, #a0c1f7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Certifique-se de que o overlay fique acima de todos os outros elementos */
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* Estilos para o Spinner */
.spinner {
  border: 8px solid rgba(255, 255, 255, 0.3);
  border-top: 8px solid #ffffff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

/* Animação do Spinner */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Classe para ocultar o overlay (fade-out) */
#loading-overlay.fade-out {
  opacity: 0;
  pointer-events: none; /* Desativa a interação enquanto o overlay desaparece */
}

/* Wrapper para o campo de e-mail e a checkbox */
.email-wrapper {
  position: relative;
  width: 100%; /* O input ocupa 100% da largura disponível */
}

/* Ajuste para o input de e-mail */
.email-wrapper input[type="email"] {
  width: 100%;
  padding-right: 120px; /* Espaço suficiente para a checkbox */
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 15px;
  font-size: 1rem;
  box-sizing: border-box;
  background-color: #f9f9f9;
  color: #333;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Estilo do input ao ser focado */
.email-wrapper input[type="email"]:focus {
  border-color: #1975da;
  box-shadow: 0 0 5px rgba(25, 117, 218, 0.5);
  outline: none;
}

/* Posicionamento da checkbox à direita */
.remember-email {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #333;
}

/* Checkbox e espaçamento entre a checkbox e o texto */
.remember-email input[type="checkbox"] {
  margin-right: 5px;
}

/* Estilo para a label da checkbox */
.remember-email label {
  font-size: 12px;
  color: #333;
}

/* Posicionamento da checkbox */
.textfield-checkbox {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.textfield-checkbox input[type="checkbox"] {
  margin-right: 5px;
}

.textfield-checkbox label {
  font-size: 14px;
  color: #333;
}

/* Modal de Sucesso */
.modal-sucesso {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Fundo escuro */
  justify-content: center;
  align-items: center;
}

/* Conteúdo do Modal de Sucesso */
.modal-content-sucesso {
  background-color: white;
  border-radius: 15px;
  width: 400px; /* Ajuste o tamanho */
  padding: 40px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.4s ease, transform 0.4s ease; /* Transição suave */
}

.modal-sucesso.show .modal-content-sucesso {
  opacity: 1;
  transform: scale(1);
  animation: bounceIn 0.6s ease forwards;
}

/* Animação bounce in */
@keyframes bounceIn {
  0% {
    transform: scale(0.5);
  }
  60% {
    transform: scale(1.1);
  }
  80% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

/* Estilo do Checkmark */
.checkmark-container {
  margin-bottom: 20px;
  display: flex;
  justify-content: center; /* Centraliza o checkmark */
}

.checkmark {
  width: 80px; /* Tamanho adequado */
  height: 80px;
  display: block;
}

.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke: #4CAF50;
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

/* Estilo do Título e Texto do Modal */
.modal-content-sucesso h3 {
  font-size: 24px;
  color: #000;
  font-weight: bold;
}

.modal-content-sucesso p {
  color: #333;
  font-size: 16px;
  margin-top: 10px;
}
