/* Estilos específicos para o modal de autenticação */
.auth-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
  width: 90%;
  max-width: min(345px, 98vw);
  padding: 15px 12px;
  color: #333;
  box-sizing: border-box !important;
}

#modalOverlay {
  position: fixed;
  display: none;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

.form-group input {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.form-group input:focus {
  outline: none;
  border-color: #007BFF;
}

.form-group input::placeholder {
  color: #888;
}

button[type="submit"] {
  background-color: #008c44;
  color: white;
  border: none;
  padding: 12px 16px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-weight: bold;
  width: 100%;
}

button[type="submit"]:hover {
  background-color: #00703a;
}

.toggle-text {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #000;
  text-align: center;
}

.toggle-text a {
  color: #00703a;
  text-decoration: none;
  font-weight: bold;
  margin-left: 5px;
}

.toggle-text a:hover {
  text-decoration: underline;
}

.error-message {
  color: #d9534f;
  font-size: 12px;
  display: none;
}

.blurred {
  filter: blur(3px);
  pointer-events: none;
}

.modal-open {
  overflow: hidden;
}

.phone-input .whatsapp-wrapper {
  display: flex;
  align-items: center;
  gap: 5px;
}

.phone-input .prefix {
  padding: 8px 10px;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 4px 0 0 4px;
  font-weight: bold;
}

.phone-input input[type="text"] {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 0 4px 4px 0;
  outline: none;
}

/* Responsividade para dispositivos muito pequenos */
@media (max-width: 320px) {
  .auth-modal {
    width: 95%;
    padding: 10px 8px;
  }
  
  .form-group input {
    padding: 8px;
    font-size: 14px;
  }
  
  button[type="submit"] {
    padding: 10px 14px;
    font-size: 14px;
  }
}
