/* Animação de Ondas para o Login */
body {
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
  background-size: cover;
  background-position: center;
}

/* Estilização básica para o container de login */
.login-container {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.left-side {
  position: relative;
  width: 40%;
  overflow: hidden;
  background: linear-gradient(45deg, #2193b0, #6dd5ed);
}

.right-side {
  width: 60%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #f8f9fa;
}

/* Efeito de ondas na esquerda */
.left-side::before,
.left-side::after {
  content: "";
  position: absolute;
  left: 0;
  width: 200%;
  height: 200%;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 38%;
  transform-origin: 50% 49%;
}

.left-side::before {
  animation: drift 12s infinite linear;
}

.left-side::after {
  animation: drift 15s infinite linear;
  opacity: 0.5;
}

@keyframes drift {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Adicionar mais ondas para criar um efeito mais rico */
.wave1, .wave2, .wave3 {
  position: absolute;
  width: 200%;
  height: 200%;
  bottom: 0;
  left: 0;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 38%;
}

.wave1 {
  animation: drift 20s infinite linear;
  opacity: 0.3;
}

.wave2 {
  animation: drift 25s infinite linear reverse;
  opacity: 0.2;
}

.wave3 {
  animation: drift 30s infinite linear;
  opacity: 0.1;
}

/* Logo container */
.logo-container {
  margin-bottom: 30px;
  text-align: center;
}

.logo-container img {
  max-width: 200px;
  height: auto;
}

/* Novo design de formulário */
#loginForm {
  background: white;
  padding: 35px 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 380px;
  position: relative;
  overflow: hidden;
}

#loginForm::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, #2193b0, #6dd5ed);
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
}

.login-header {
  margin-bottom: 25px;
  text-align: center;
}

.login-header h2 {
  margin: 0;
  color: #333;
  font-size: 24px;
  font-weight: 600;
}

.login-header p {
  margin-top: 8px;
  color: #666;
  font-size: 14px;
}

.form-group {
  position: relative;
  margin-bottom: 25px;
  width: 100%;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #555;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 15px 15px 15px 45px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  background-color: #f8f9fa;
  transition: all 0.3s ease;
  font-size: 14px;
  box-sizing: border-box;
}

.form-group i {
  position: absolute;
  left: 15px;
  top: 40px;
  color: #2193b0;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.form-group:hover i {
  opacity: 1;
}

.form-group input:focus {
  border-color: #2193b0;
  box-shadow: 0 0 0 3px rgba(33, 147, 176, 0.15);
  outline: none;
  background-color: white;
}

/* Estilo para o link do botão */
.btn-link {
  display: block;
  width: 100%;
  text-decoration: none;
}

/* Garantir que ambos os botões tenham o mesmo espaçamento */
.btn {
  width: 100%;
  padding: 15px;
  margin-bottom: 15px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(45deg, #2193b0, #6dd5ed);
  color: white;
  box-shadow: 0 4px 15px rgba(33, 147, 176, 0.3);
}

.btn-secondary {
  background: white;
  color: #2193b0;
  border: 1px solid rgba(33, 147, 176, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(33, 147, 176, 0.2);
}

/* Efeito de ondulação nos botões */
.btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(10, 10);
  opacity: 0;
  transition: transform .3s, opacity .5s;
}

.btn:active::after {
  transform: scale(0, 0);
  opacity: .3;
  transition: 0s;
}

/* Aviso anti-bot */
.anti-bot-notice {
  margin-top: 10px;
  max-width: 430px;
  text-align: center;
  font-size: 15px;
  color: #666;
  padding: 10px;
  border-radius: 10px;
  background-color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border-left: 3px solid #2193b0;
  margin-bottom: 18px;
}

.anti-bot-notice i {
  color: #2193b0;
  margin-right: 8px;
}

/* Footer */
.login-footer {
  bottom: 20px;
  font-size: 0.75rem;
  color: #666;
  text-align: center;
  width: 100%;
  left: 0;
}

/* Checkbox simplificado para "Lembrar-me" */
.form-check {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.form-check input[type="checkbox"] {
  margin-right: 10px;
  cursor: pointer;
  width: 16px;
  height: 16px;
  accent-color: #2193b0;
}

.form-check label {
  font-size: 14px;
  color: #555;
  cursor: pointer;
}

/* Link para esqueci a senha */
.forgot-password {
  text-align: right;
  margin-bottom: 20px;
}

.forgot-password a {
  color: #2193b0;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.forgot-password a:hover {
  color: #6dd5ed;
  text-decoration: underline;
}

/* Responsividade - MELHORIAS PARA MOBILE */
@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
  }
  
  .left-side {
    width: 100%;
    height: 25vh; /* Reduzido para dar mais espaço ao formulário */
  }
  
  .right-side {
    width: 100%;
    height: 75vh;
    padding: 15px;
    justify-content: flex-start; /* Alinha no topo em dispositivos móveis */
    overflow-y: auto; /* Permite rolagem se necessário */
  }
  
  #loginForm {
    padding: 25px 20px;
    max-width: 100%;
    margin: 0 auto; /* Centraliza o formulário */
    width: 90%; /* Garante que não fique muito próximo das bordas */
    margin-left: -10px;
  }
  
  .logo-container {
    margin-top: 20px;
    margin-bottom: 20px;
  }
  
  .logo-container img {
    max-width: 150px; /* Logotipo um pouco menor em dispositivos móveis */
  }
  
  .login-footer {
    position: relative;
    margin-top: 20px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
    bottom: auto;
  }
  
  /* Ajustes para botões em tela pequena */
  .btn {
    padding: 12px;
    font-size: 14px;
  }
  
  /* Ajusta o tamanho do aviso anti-bot */
  .anti-bot-notice {
    font-size: 13px;
    max-width: 100%;
    padding: 8px;
    margin-left: -10px;
  }
  
  /* Melhora o alinhamento dos elementos do formulário */
  .form-group input {
    padding: 12px 12px 12px 40px;
  }
  
  .form-group i {
    top: 37px;
  }
}

/* Ajustes adicionais para telas muito pequenas */
@media (max-width: 375px) {
  #loginForm {
    padding: 20px 15px;
    width: 95%;
  }
  
  .login-header h2 {
    font-size: 20px;
  }
  
  .login-header p {
    font-size: 13px;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-group label {
    font-size: 13px;
  }
  
  .form-group input {
    padding: 10px 10px 10px 35px;
    font-size: 13px;
  }
  
  .form-group i {
    top: 33px;
    left: 12px;
  }
  
  .right-side {
    padding: 10px;
  }
}

/* Ajuste para orientação de paisagem em dispositivos móveis */
@media (max-height: 500px) and (orientation: landscape) {
  .login-container {
    flex-direction: row; /* Volta para direção horizontal em paisagem */
  }
  
  .left-side {
    width: 30%;
    height: 100vh;
  }
  
  .right-side {
    width: 70%;
    height: 100vh;
    justify-content: center;
  }
  
  .logo-container {
    margin-top: 0;
    margin-bottom: 15px;
  }
  
  #loginForm {
    width: 90%;
    max-width: 320px;
  }
  
  .login-footer {
    position: absolute;
    bottom: 10px;
  }
}