/* Modal como mero container — o card é o mesmo da página /login */
.modal .modal-content.minimal{
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  width: auto;
  max-width: none;
  max-height: 90vh;
  overflow: auto;
}


/* Reset básico e fundo */


.login-wrapper {
  display: flex;
  justify-content: center;
  padding: 0;
  margin-top: 0px; /* ou o valor exato que quiser */
}


/* Container do formulário */
.form-container {
  background-color: #f5f5f5;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 380px;
  width: 100%;
  z-index: 1; /* z-index menor que o popup */
  position: relative; /* obrigatório para z-index funcionar */
  margin: 0px auto 60px;
  overflow: visible;
}


.form-container p {
  color: #555;
  text-align: center;
  font-size: 14px;
  margin: 8px 0;
}


.form-container h2 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 30px;
  font-size: 24px;
  color: #ff8000;
}

/* Grupos de campos */
.form-group {
  margin-bottom: 10px;
  position: relative;
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  padding-right: 40px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.form-group input:focus {
  border-color: #3498db;
  outline: none;
  box-shadow: 0 0 6px #3498db;
  transition: 0.3s;
}

/* Botão de mostrar senha */
.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 14px;
  color: #555;
  cursor: pointer;
}

.toggle-password:hover {
  color: #ff8000;
}

/* Botão principal */
.btn-primary {
  width: 100%;
  padding: 12px;
  background: #4a6bff;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
  margin-bottom: 10px;
}

.btn-primary:hover {
  background: #3a56d4;
}

/* Mensagem de rodapé */
.politica-termos {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.politica-termos a {
  color: #4a6bff;
  text-decoration: none;
  margin-left: 4px;
}

.politica-termos a:hover {
  text-decoration: underline;
}

/* Links adicionais */
.form-container a {
  color: #3498db;
  text-decoration: none;
  font-size: 14px;
}

.form-container a:hover {
  color: #ff8000;
}

/* Erros */
.error-message {
  color: red;
  background-color: #f9ebea;
  padding: 5px;
  border: 1px solid red;
  border-radius: 5px;
  margin-bottom: 10px;
  text-align: center;
}

/* Cloudfare */
.cf-turnstile {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0 auto 8px auto;
}

.cf-turnstile > iframe {
  max-width: 100% !important;
  width: 100% !important;
  border-radius: 6px;
  border: 1px solid #ccc;
}



/* Toast */
#toast {
  visibility: hidden;
  min-width: 250px;
  margin-left: -125px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 2px;
  padding: 16px;
  position: fixed;
  z-index: 9999;
  left: 50%;
  bottom: 30px;
  font-size: 17px;
}

#toast.show {
  visibility: visible;
  animation: fadein 0.5s, fadeout 0.5s 3s;
}

@keyframes fadein {
  from { bottom: 0; opacity: 0; }
  to   { bottom: 30px; opacity: 1; }
}

@keyframes fadeout {
  from { bottom: 30px; opacity: 1; }
  to   { bottom: 0; opacity: 0; }
}

/* Responsividade */
@media (max-width: 768px) {
  .form-container {
    margin: 1rem;
    padding: 1.5rem;
  }
}
.social-login {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 10px;
}

.social-login a {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 5px;
  color: #555;
  font-size: 14px;
  padding: 10px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.social-login a:hover {
  background-color: #f0f0f0;
}

.social-login a.btn-google {
  border-color: #4285F4;
}

.social-login a.btn-facebook {
  border-color: #1877F2;
}

.social-login img {
  width: 20px;
  margin-right: 8px;
}
